#8849: WA......


frank73255 (ya~~)

學校 : 臺北市立成功高級中學
編號 : 41002
來源 : [36.229.140.230]
最後登入時間 :
2018-01-30 23:59:44
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [114.25.235.167] | 發表日期 : 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)

學校 : 國立中央大學
編號 : 27736
來源 : [203.204.218.144]
最後登入時間 :
2024-02-07 22:53:10
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [124.12.89.163] | 發表日期 : 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