24 条题解

  • -3
    @ 2022-1-2 14:41:45
    #include <stdio.h>
    #include <iostream>
    #include <math.h>
    #include <iomanip>
    using namespace std;
    #define LL Long Long
    const int N=1e5+10;
    const int INF=0x3f3f3f3f;
    int main()
    {
    	int n;
    	cin >>n;
    	if((n%4==0 && n%100 !=0)||(n%400==0))
    	{
    		cout <<"Y";
    	}
    	else 
    	{
    		cout<<"N";
    	}
    }
    
    • -4
      @ 2022-2-9 9:45:41

      #include <stdio.h> #include <iostream> using namespace std; int main() { int a; cin >> a; if (a % 4 == 0) { cout << "Y"; } else if (a % 4 != 0) { cout << "N"; }

      }

      • -4
        @ 2021-10-16 19:38:16

        a = int(input())

        if 0 < a < 3000:

        if a % 4 == 0 and a % 100 != 0: 
        
            print("Y")
        

        elif a % 400 == 0:

        print("Y") 
        

        elif a % 4 != 0:

        print("N") 
        

        elif a % 100 == 0:

        print("N") 
        

        else:

         print("N")
        
        • -5
          @ 2021-10-15 13:13:55

          a = int(input()) if 0 < a < 3000: if a % 4 == 0 and a % 100 != 0: print("Y") elif a % 400 == 0: print("Y") elif a % 4 != 0: print("N") elif a % 100 == 0: print("N") else: print("N")

          信息

          ID
          866
          时间
          1000ms
          内存
          256MiB
          难度
          5
          标签
          递交数
          1303
          已通过
          483
          上传者