8 条题解

  • 5
    #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;
    }
    
  • 1

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

  • 1

    #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;
    }

  • -2

    #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;
    }

  • 1

信息

ID
1001
难度
7
分类
(无)
标签
递交数
1430
已通过
319
通过率
22%
被复制
12
上传者