28 条题解

  • -3
    @ 2022-4-28 21:27:19

    #INCLUDE

    • -3
      @ 2022-1-2 14:44:15
      #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";
      	}
      }
      
      • -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-7-3 18:34:52

          #include <stdio.h> #include #include <math.h> using namespace std; int main() { int n; cin >> n; if( (n%4 == 0 && n%100 !=0 ) || (n%400 == 0)) { cout << "Y"; } else { cout << "N"; } }

          • -4
            @ 2022-7-2 16:47:41

            /// #include<stdio.h> #include using namespace std; int main() { int a; cin>>a; if(a%40&&a%100!=0) { cout<<"Y"<<endl; }else if(a%4000) { cout<<"Y"<<endl; }else { cout<<"N"<<endl; } } ///

            • -4
              @ 2022-2-9 9:45:41

              #include <stdio.h> #include 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
                  标签
                  递交数
                  1588
                  已通过
                  606
                  上传者