#27288: AC~~~


Ivan20092009 (零二)

學校 : 臺北市私立延平高級中學
編號 : 167374
來源 : [36.236.69.236]
最後登入時間 :
2023-07-02 14:38:15
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [203.72.178.1] | 發表日期 : 2021-09-22 17:30

#include<iostream>

using namespace std;

 

int main()

 

{

int a,b,c,d;

while(cin>>a>>b)

cout<<2*(a+b)<<endl;

 

while(cin>>c>>d)

cout<<2*c+2*d<<endl;

return 0;

}

 
ZeroJudge Forum