5 条题解

  • -1
    @ 2026-8-4 17:12:15
    • 不知道别问我。

    • -1
      @ 2026-8-4 16:27:30

      #include <bits/stdc++.h> using namespace std;

      int main() { int a; cin >> a ; if (a % 4 != 0 || a / 100 % 4 != 0 ) { cout << a << "是平年";

      } else {
      	cout << a << "是闰年";
      }
      
      
      return 0;
      

      }

      • -1
        @ 2026-8-4 16:26:46

        #include <bits/stdc++.h> using namespace std;

        int main() { int a, b = 4; cin >> a ; if ( a % b == 0) { cout << a << "是闰年"; } else { cout << a << "是平年"; }

        return 0;
        

        }

        • -1
          @ 2026-8-4 16:26:24

          #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n % 400 == 0) { cout << "是闰年"; } else { cout << "是平年"; } return 0; }

          • -1
            @ 2026-8-4 16:09:51

            #include <bits/stdc++.h> using namespace std;

            int main() { int n; cin >> n; if (n % 400 == 0) { cout << "是闰年"; } else { cout << "是平年"; } return 0; }

            • 1

            信息

            ID
            152
            时间
            1000ms
            内存
            64MiB
            难度
            6
            标签
            递交数
            178
            已通过
            55
            上传者