Skip to content

Commit a0cb0ec

Browse files
committed
Added 1131A - Sea Battle.cpp
1 parent 173c70b commit a0cb0ec

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

1131A - Sea Battle.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
7+
8+
int main()
9+
{
10+
int w1,h1,w2,h2;
11+
cin>>w1>>h1>>w2>>h2;
12+
cout<< ((h1+h2)+2)*2 + max(w1,w2)*2 <<endl;
13+
}

0 commit comments

Comments
 (0)