该文被密码保护。 阅读全文
摘要:
#include #include #include using namespace std; struct element{ int n; float an; }; float result[2000]; int main(){ int k1, k2,num=0; memset(result, 0, sizeof result); scanf("%d",... 阅读全文
摘要:
#include #define MAX 21 int t, n; int arr[MAX]; int main(){ scanf("%d", &t); while (t--){ scanf("%d", &n); for (int i = 0; i 0; i--){ arr[i] -= arr[i - 1]; } for (int i = 0; i < n; i++){... 阅读全文
摘要:
#include int a, b; int sum; int main(){ while (scanf("%d %d", &a, &b)!=EOF){ sum = a + b; if (sum -1000)printf("%d\n", sum); else{ int sum1 = sum % 1000; int sum2 = sum / 1000; int su... 阅读全文
摘要:
#include #include double coefficient[1010]; int k1, k2,k3=0; int nk; int max_exponent1, max_exponent2; int min_exponent1, min_exponent2; int main(){ memset(coefficient, 0, sizeof coefficient); sc... 阅读全文