| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 75945 | cfx | 过生日 | C++ | Compile Error | 0 MS | 0 KB | 589 | 2024-06-01 10:43:50 |
#include<bits/stdc++.h> using namespace std; int main() { int t,y,n; cin>>t; for(int i=1;i<=t;i++) { cin>>y>>n; int j=0; while(1) { if((y+j)%4==0) { if((y+j)%100!=0) { n--; } else { j++; continue; } } if(n==0) { cout<<y+j<<endl; } j++; } return 0; }
Main.cc: In function 'int main()': Main.cc:32:1: error: expected '}' at end of input } ^