标签:highlight printf table i++ miss scan .com div int
1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int n; 6 scanf("%d",&n); 7 while(n--) 8 { 9 int m,r; 10 int num,sum=0; 11 scanf("%d%d",&m,&r); 12 for(int i=0;i<m;i++) 13 { 14 scanf("%d",&num); 15 sum+=num; 16 } 17 if(sum+1500==r) 18 printf("Correct\n"); 19 else 20 printf("Bug\n"); 21 } 22 }
A - Codeforces Rating |
标签:highlight printf table i++ miss scan .com div int
原文地址:http://www.cnblogs.com/kearon/p/7215256.html