Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5325 D班-陈颖钧 过生日 C++ 通过 100 2 MS 264 KB 308 2025-02-03 18:40:05

Tests(1/1):


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


测评信息: