3 条题解

  • 2
    @ 2026-5-31 15:37:00
    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
    	int a;
    	cin>>a;
    if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) {
    
        cout << "Y" << endl;
    } else {
        cout << "N" << endl;
    }
    
    	return 0;
    }
    
    
    

    信息

    ID
    30945
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    (无)
    递交数
    53
    已通过
    15
    上传者