#8849: WA......


frank73255 (ya~~)

School : 臺北市立成功高級中學
ID : 41002
IP address : [36.229.140.230]
Last Login :
2018-01-30 23:59:44
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [114.25.235.167] | Post Date : 2014-06-02 14:10

#include <iostream>
#include <cstdlib>
#include <stdio.h>
using namespace std;
int main()
{
int  h, w;

cin >> h >> w;
cout << h*2+w*2 << endl;

 
return 0;
}
 
 
 
WA..原因:輸出短少   請教各位大大! 
 
#8867: Re:WA......


anandrewboy70900 (ShowTsai)

School : 國立中央大學
ID : 27736
IP address : [203.204.218.144]
Last Login :
2024-02-07 22:53:10
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [124.12.89.163] | Post Date : 2014-06-11 15:08

#include <iostream>
#include <cstdlib>
#include <stdio.h>
using namespace std;
int main()
{
 int  h, w;

while( cin >> h >> w )
cout << h*2+w*2 << endl;

  }
return 0;
}
 
 
 
WA..原因:輸出短少   請教各位大大! 
 
要重複輸入~ 


 
ZeroJudge Forum