Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5077 D班-陈颖钧 过生日 C++ 解答错误 0 1 MS 260 KB 305 2025-01-21 10:12:13

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main(){ int i,t,y,n,j,a; cin>>t; for(i=1;i<=t;i++){ cin>>y>>n; for(j=1;j<=n;j++){ if(j%4==0&&j%100>0||j%400==0){ a=j; break; } } cout<<y+a<<endl; } }


测评信息: