#include<iostream> #include<vector> #include<algorithm> #include<iomanip> #include<string> #include<cmath> using namespace std; int main() { int year; while (~scanf("%d", &year)) { //不能用cin...... if (year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) printf("Leap Year\n"); //不能用cout... else printf("Not Leap Year\n"); } } |
Double click to view unformatted code.