5 solutions

  • 1
    @ 2026-5-10 16:05:56
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,y;
        cin>>a>>y;
        if (a<=1 and a>=-1 and y<=1 and y>=-1){
        	cout<<"yes";
    	}
    	else
    	{
    		cout<<"no";
    	}
        return 0;
    }
    
    
    • 1
      @ 2025-8-15 16:23:54
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          int a;
          cin>>a;
          if(a%4==0 && a%100!=0 || a%400==0)
          {
              cout<<"no";
          }
          else
          {
              cout<<"yes";
          }
          return 0;
      }
      
      
      • -1
        @ 2025-10-7 16:27:46

        #include<bits/stdc++.h> using namespace std; int main() { int a,y; cin>>a>>y; if (a<=1 and a>=-1 and y<=1 and y>=-1) { cout<<"yes"; } else { cout<<"no"; } return 0; }

        • -2
          @ 2025-10-7 14:18:58

          #include<bits/stdc++.h> using namespace std; int main() { int x,y; cin>>x>>y; if(x>=-1&&x<=1&&y>=-1&&y<=1) { cout<<"yes"; } else { cout<<"no"; } return 0; }

          • -6
            @ 2024-7-18 19:11:48

            ..............努力获得题解👀️ ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 题解来了:

            #include <bits/stdc++.h>
            using namespace std;
            int main()
            {
                int a;
                cin>>a;
                if(a%4==0 && a%100!=0 || a%400==0)
                {
                    cout<<"N";
                }
                else
                {
                    cout<<"Y";
                }
                return 0;
            }
            
            • 1

            Information

            ID
            37
            Time
            1000ms
            Memory
            256MiB
            Difficulty
            1
            Tags
            (None)
            # Submissions
            313
            Accepted
            107
            Uploaded By