- //2008-09-20 13:21:26 Accepted 2969 C++ 20ms 260Kb
- #include<stdio.h>
- int main()
- {
- #ifndef ONLINE_JUDGE
- freopen("2969.txt", "r", stdin);
- #endif
- int t;
- scanf("%d", &t);
- while(t--)
- {
- int n;
- scanf("%d", &n);
- if(n == 0) printf("0");
- for(int i = 0; i <= n; i++)
- {
- int temp;
- scanf("%d", &temp);
- if(i < n) printf("%d", temp * (n - i));
- if(i < n - 1) printf(" ");
- }
- printf("/n");
- }
- #ifndef ONLINE_JUDGE
- fclose(stdin);
- #endif
- return 0;
- }
problem 2969
最新推荐文章于 2022-02-25 21:57:21 发布

1103

被折叠的 条评论
为什么被折叠?



