HDU1201 18歲生日[入門+]

使用scanf()標準化輸入非常方便。 #include <iostream> #include <cstdio> using namespace std; const int N =18; const int Yeardays =365; //閏年計算函數 int leapyear(int year){ if((year%4==0&&year&100!=0)||year%400==0)
相關文章
相關標籤/搜索