#20424: WHY WA??


andyvip0124@gmail.com (侯昱彰)


#include <bits/stdc++.h>
using namespace std;
int main(){
int H,W;
while (cin>>H>>W){
cout<<(H+W)*2;
}
}

 

請幫我看一下會什麼測資會出現WA

#20482: Re:WHY WA??


a22671512 (夢之旋律)


#include <bits/stdc++.h>
using namespace std;
int main(){
int H,W;
while (cin>>H>>W){
cout<<(H+W)*2;
}
}

 

請幫我看一下會什麼測資會出現WA


你的兩筆輸出間少了換行
他會全部黏在一起

cout<<(H+W)*2<<endl;