Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
325126 方相宜 【C1-8】判断闰年 C++ Accepted 100 1 MS 252 KB 256 2025-06-02 19:07:30

Tests(4/4):


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


Judgement Protocol: