#5809: 明明答案對 結果WA 輸出短少


tadpole655010 (GeMini)


/**********************************************************************************/
/*  Problem: a004 "文文的求婚"                                               */
/*  Language: CPP                                                                 */
/*  Result: WA(line:2) judge by this@ZeroJudge                                    */
/*  Author: tadpole655010 at 2011-09-12 20:57:16                                  */
/**********************************************************************************/


#include<iostream> 
using namespace std; 
int main()
{
    int a;
    cin>>a;
    if(a%400==0){cout<<"閏年"<<endl;} 
    else if(a%100==0){cout<<"平年"<<endl;} 
    else if(a%4==0){cout<<"閏年"<<endl;} 
    else{cout<<"平年"<<endl;} 
#5816: Re:明明答案對 結果WA 輸出短少


lfs92002 (GMan每日殺水題1.6449340668482264364...)


/**********************************************************************************/
/*  Problem: a004 "文文的求婚"                                               */
/*  Language: CPP                                                                 */
/*  Result: WA(line:2) judge by this@ZeroJudge                                    */
/*  Author: tadpole655010 at 2011-09-12 20:57:16                                  */
/**********************************************************************************/


#include 
using namespace std; 
int main()
{
    int a;
    cin>>a;
    if(a%400==0){cout<<"閏年"<
    else if(a%100==0){cout<<"平年"<
    else if(a%4==0){cout<<"閏年"<
    else{cout<<"平年"<

使用while來連續輸入