知识点:

分支控制:分支控制

#include <iostream>
using namespace std;

int main() {
    int year;
    string isPrime = "no";

    cin >> year;

    if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
        isPrime = "yes";
    }

    cout << isPrime;

    return 0;
}