#27536: CPP


qgd20040229@gmail.com (时年)

School : No School
ID : 170559
IP address : [27.105.55.178]
Last Login :
2021-10-10 23:00:28
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [27.105.55.178] | Post Date : 2021-10-10 23:44

#include <iostream>

using namespace std;

 

int main(){

  int h, w;

  while (cin >> h >> w){

    cout << (h+w)*2 <<endl;

  }

}

 
ZeroJudge Forum