2 条题解

  • 0
    @ 2025-11-29 16:06:54
    #include <iostream>
    using namespace std;
    int main(){
        int n;
        cin >> n;
        if((n%4==0 && n%100!=0) || n%400==0){
            cout << "Y";
        }else{
            cout << "N";
        }
        return 0;
    }
    
    • 0
      @ 2025-11-29 15:59:51

      判断闰年口诀:

      四年一闰 百年不闰 四百年又闰

      逻辑关系口诀:

      1与2或3

      • 1

      信息

      ID
      540
      时间
      1000ms
      内存
      256MiB
      难度
      7
      标签
      (无)
      递交数
      91
      已通过
      18
      上传者