Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
20398 梅煦洋 判断闰年 C++ Accepted 100 0 MS 248 KB 324 2021-06-12 16:13:06

Tests(6/6):


#include <iostream> using namespace std; int main(){ int year; cin >> year; if(year % 4 == 0){ if(year % 100 == 0){ if (year % 400 == 0) cout << "Yes"; else cout <<"No"; } else cout <<"Yes"; } else cout <<"No"; return 0; }


Judgement Protocol: