The 5th Zhejiang Provincial Collegiate Programming Contest---ProblemE:Easy Task
来源:互联网 发布:mac玩泡泡堂 编辑:程序博客网 时间:2024/05/16 16:06
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2969
全场第一水题。我不知道怎么解释,看代码就好了。。。
#include<bits/stdc++.h>using namespace std;int main() { int t,n,a[101]; cin>>t; while(t--) { cin>>n; if(n==0) { cin>>a[0]; cout<<n<<endl; } else { for(int i=n; i>=0; i--) { cin>>a[i]; a[i]*=i; } cout<<a[n]; for(int i=n-1; i>0; i--) printf(" %d",a[i]); cout<<endl; } } return 0;}
0 0
- The 5th Zhejiang Provincial Collegiate Programming Contest---ProblemE:Easy Task
- The 5th Zhejiang Provincial Collegiate Programming Contest 部分题解
- The 5th Zhejiang Provincial Collegiate Programming Contest
- The 7th Zhejiang Provincial Collegiate Programming Contest
- The 6th Zhejiang Provincial Collegiate Programming Contest
- The 8th Zhejiang Provincial Collegiate Programming Contest / L - Javabeans
- The 8th Zhejiang Provincial Collegiate Programming Contest / M - Median
- The 8th Zhejiang Provincial Collegiate Programming Contest
- The 9th Zhejiang Provincial Collegiate Programming Contest
- The 10th Zhejiang Provincial Collegiate Programming Contest Solution
- The 11th Zhejiang Provincial Collegiate Programming Contest---Talented Chef
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 11th Zhejiang Provincial Collegiate Programming Contest
- The 12th Zhejiang Provincial Collegiate Programming Contest
- The 12th Zhejiang Provincial Collegiate Programming Contest - A
- The 12th Zhejiang Provincial Collegiate Programming Contest - G
- Toradex 发布基于ARM系统模块的Windows 10 IoT Core 技术预览版
- poj 2411 骨牌覆盖问题 状压dp
- java基础(函数)
- ubuntu卡在stopping restore sound card state
- Linux精讲——chmod命令
- The 5th Zhejiang Provincial Collegiate Programming Contest---ProblemE:Easy Task
- Struts2防止表单重复提交
- Yii 1.x 到 Yii 2.x的细节变化
- 你当以同等的热情护卫代码
- The 5th Zhejiang Provincial Collegiate Programming Contest---ProblemF:Faster, Higher, Stronger
- JSP—九大隐式对象之out
- CF 158A Round
- python之干什么可以走的路线
- ESP8266(一)初体验