#27536: CPP


qgd20040229@gmail.com (时年)

學校 : 不指定學校
編號 : 170559
來源 : [27.105.55.178]
最後登入時間 :
2021-10-10 23:00:28
a861. 1. Secure the Perimeter -- HP CodeWars2010 | From: [27.105.55.178] | 發表日期 : 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