#27288: AC~~~


Ivan20092009 (零二)

School : 臺北市私立延平高級中學
ID : 167374
IP address : [36.236.69.236]
Last Login :
2023-07-02 14:38:15
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [203.72.178.1] | Post Date : 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