#1804: a023 answer


1753422-4@g.puiching.edu.mo (P5A30廖善衡 :)

School : Pui Ching Middle School
ID : 2950
IP address : [192.168.120.33]
Last Login :
2025-06-05 11:34:59
a023. 文文的求婚--續集 (1 行版) | From: [192.168.120.33] | Post Date : 2025-03-12 22:02

#include <iostream>

using namespace std;

 

int main() {

    int a;

    cin >> a;

    if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) {

        cout << "a leap year";

    } else {

        cout << "a normal year";

    }

    return 0;

}

 
#2256: Re:a023 answer


1752786-4@g.puiching.edu.mo (林敬晉P5A08(JalenLam_progamer)(IQ...)

School : Pui Ching Middle School
ID : 3260
IP address : [192.168.120.33]
Last Login :
2025-06-05 11:37:15
a023. 文文的求婚--續集 (1 行版) | From: [192.168.120.33] | Post Date : 2025-06-04 09:56

#include

using namespace std;

 

int main() {

    int a;

    cin >> a;

    if ((a % 4 == 0 && a % 100 != 0) || (a % 400 == 0)) {

        cout << "a leap year";

    } else {

        cout << "a normal year";

    }

    return 0;

}


don't send the prefact ans

 
ZeroJudge Forum