6 条题解

  • 4
    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
        int year;
        cin>>year;
        if(year%4==0&&year%100!=0||year%400==0)
        {
            cout<<"YES"; 
        }
        else cout<<"NO";
        return 0;
    }
    
  • 0

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

  • 0

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int y;
    cin>>y;
    if(y%400==0||y%4==0&&y%100!=0)
    cout<<"YES"<<endl;
    else
    cout<<"NO"<<endl;
    return 0;
    }

  • 0

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int y;
    cin>>y;
    if(y%4==0&&y%100!=0||y%400==0)
    cout<<"YES"<<endl;
    else
    cout<<"NO";
    return 0;
    }
    @水宇辰 别抄

  • -1
    @ 2021-12-22 10:40:14

    #include <iostream>
    #include <cmath>
    using namespace std;
    int main()
    {
    int x;
    cin>>x;
    if(x%4==0)
    if(x%100==0)
    if(x%400==0)
    cout<<"YES";
    else
    cout<<"NO";
    else
    cout<<"YES";
    else
    cout<<"NO";

    return 0;
    }

  • -1
    @ 2021-11-16 10:35:57

    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
    int y;
    cin>>y;
    if(y%4==0&&y%100!=0||y%400==0)
    cout<<"YES"<<endl;
    else
    cout<<"NO";
    return 0;
    }

  • 1

信息

ID
1001
难度
6
分类
(无)
标签
递交数
1135
已通过
263
通过率
23%
被复制
8
上传者