#1804: a023 answer


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

School : No School
ID : 2950
IP address : [192.168.120.33]
Last Login :
2025-03-20 11:41:41
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;

}

 
ZeroJudge Forum