Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5226 D班-西瓜 过生日 C++ 通过 100 1 MS 260 KB 265 2025-01-24 09:44:43

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main() { int x,y,n,cnt; cin>> x; while(x--) { cin >> y >> n; cnt=0; while(cnt<n) { if(y%4==0&&y%100!=0||y%400==0) { cnt++; } y++; } cout << y-1 << endl; } return 0; }


测评信息: