| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
整体看就简单了!!!原来水题有时也不是那么容易看出来的~~~#include<stdio.h>
void main()
{
int a,b,temp;
long sum=0;
while(scanf("%d%d",&a,&b),a!=0){
sum=0;
while(a--){
scanf("%*s%d",&temp);
sum+=temp;
}
printf("%ld\n",b*3-sum);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator