13 条题解

  • 2
    @ 2023-12-25 13:50:15
    • #include<iostream> using namespace std; int main() { int y; cin>>y; if(y%400==0) cout<<"Yes"; else if(y%100!=0) { if(y%4==0) cout<<"Yes"; else cout<<"No"; } else cout<<"No"; return 0; }
    • 1
      @ 2024-11-9 13:34:13

      #include<bits/stdc++.h> using namespace std; int main() { int y; cin>>y; if(y%4000||y%40&&y%100!=0) { cout<<"Yes"; } else { cout<<"No"; } return 0; }

      • 1
        @ 2024-11-8 13:43:52

        #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%4000) { cout<<"Yes"; } else if(a%100!=0) { if(a%40) { cout<<"Yes"; } else { cout<<"No"; } } else { cout<<"No"; } return 0; }

        • 1
          @ 2024-11-8 13:33:29

          #include<bits/stdc++.h> using namespace std; int main() { int y; cin>>y; if(y%4000) cout<<"Yes"; else if(y%100!=0) { if(y%40) cout<<"Yes"; else cout<<"No"; } else cout<<"No";

          return 0;
          

          }

          • 1
            #include<bits/stdc++.h>
            using namespace std;
            int main(){
               int y;
               cin>>y;
               if(y%400==0||(y%4==0&&y%100!=0)) puts("Yes");
               else  puts("No")
               return 0;
            }
            
            • 1
              @ 2023-12-27 13:19:55

              #include<bits/stdc++.h> using namespace std; int main() {int y; cin>>y; if(y%4000||y%100!=0&&y%40) cout<<"Yes"; else cout<<"No"; return 0; }

              • 1

                我们碧蓝档案玩家的实力

                #include<bits/stdc++.h>
                using namespace std;
                int main()
                {
                
                	int a;
                	cin>>a;
                	if (a%400==0)
                   {
                   	cout<<"Yes";
                   }
                   else if(a%100!=0)
                   {
                   	if(a%4==0)
                   	{
                   		cout<<"Yes";
                   	}
                   	else
                   	{
                   		cout<<"No";
                   	}
                   }
                   else
                   {
                   	cout<<"No";
                   }
                	return 0;
                }
                
                • 0
                  @ 2024-11-10 13:51:17

                  #include<bits/stdc++.h> using namespace std; int main() { int y; cin>>y; if(y%4000||y%100!=0&&y%40) {cout<<"YES";} else{cout<<"NO";} return 0; }

                  • 0

                    #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%4000) { cout<<"Yes"; } else if(a%100!=0) { if(a%40) { cout<<"Yes"; } else { cout<<"No"; } } return 0; }

                    • 0
                      @ 2024-11-8 13:27:08
                      using namespace std;
                      int main()
                      {
                      	int a;
                      	cin>>a;
                      	if(a%400==0)
                      	cout<<"Yes";
                      	else if(a%100!=0)
                      	{
                      	   if(a%4==0)
                      	   cout<<"Yes";
                      	   else
                      	   cout<<"No";
                      	}
                      	else
                      	cout<<"No";
                      	return 0;
                      }
                      
                      • 0
                        @ 2024-11-7 13:41:56

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

                        int main()

                        { int year;

                        cin>>year;
                        
                        if(year/4!=0)
                        {
                        	
                        	if(year/400==0)
                        	{
                        		cout<<"Yes";
                        	}
                        	else {
                        		cout<<"No";
                        	}
                        }
                        else
                        {
                        
                        	
                        		cout<<"Yes";
                        }
                        return 0;
                        

                        }

                        • 0
                          @ 2023-12-27 13:16:43

                          #include<bits/stdc++.h> using namespace std; int main() { int a; cin>>a; if(a%4000||a%100!=0&&a%40) cout<<"Yes"; else cout<<"No"; return 0; } (桃桃探头)

                          • 0
                            @ 2023-12-25 13:47:37

                            #include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if (a%4000) { cout<<"Yes"<<endl; } else if(a%100!=0) { if(a%40) { cout<<"Yes"<<endl; } else { cout<<"No"<<endl; } } else { cout<<"No"<<endl; } return 0; }

                            • 1

                            信息

                            ID
                            24
                            时间
                            1000ms
                            内存
                            256MiB
                            难度
                            6
                            标签
                            递交数
                            354
                            已通过
                            117
                            上传者