Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106625 冯俊淞 过生日 C Compile Error 0 MS 0 KB 621 2025-01-16 14:25:51

Tests(0/0):


Code:

#include<iostream> #include<bits/stdc++.h> using namespace std; bool Runyear(int y); int main(){ int t = 0; scanf("%d",&t); while(t--){ int y = 0,n = 0; scanf("%d %d",&y,&n); int count = 0; while(1){ if(Runyear(y)){ count++; } if(n == count){ break; } y++; } printf("%d\n",y); } return 0; } bool Runyear(int y){ if(y % 4 == 0 && y % 100 != 0 || y % 400 == 0){ return true; }else{ return false; } }


Run Info:

Main.c:1:19: fatal error: iostream: No such file or directory
 #include
                   ^
compilation terminated.