#include <iostream>
#include <string>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,b;
while(cin>>a>>b){
cout<<(a+b)*2<<endl;
}
return 0;
}
在撰寫「解題報告」時應該會出現以下的訊息。
相信樓主直接貼程式碼的行為已經違反規定,
建議管理員將此篇 隱藏/刪除 。
要貼程式碼請使用「一般」留言而非「解題報告」。
(「一般」留言並沒有以上規定)