浙江理工大学的宝石
http://oj.acm.zstu.edu.cn/JudgeOnline/problem.php?id=4387?
題解:簽到題
#include <stdio.h> #include <stdlib.h> #include <math.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */int main(int argc, char *argv[]) {int n,i,temp,sum=0;scanf("%d",&n);for(i=1;i<=n;i++){ scanf("%d",&temp);sum+=temp; }printf("%d\n",sum); return 0; }?
總結