#6539: 求高手OTZ一直WA......


brouille (Reno)


#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    int a;
    cin >> a;
    if (a%4==0)
    {
               if (a%100==0)
               {
                            if (a%400==0) cout << "閏年" << endl;
                            else cout << "平年" << endl;
                            }
               else cout << "閏年" << endl;
               }
    else cout << "平年" << endl;
    
    system("PAUSE");
    return EXIT_SUCCESS;
}
 
 WA (line:2)
輸出短少
您共輸出 1 行。