#8849: WA......


frank73255 (ya~~)


#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)


#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..原因:輸出短少   請教各位大大! 
 
要重複輸入~