#27288: AC~~~


Ivan20092009 (cloveت)

School : 臺北市私立延平高級中學
ID : 167374
IP address : [210.70.131.254]
Last Login :
2025-01-02 10:24:26
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