Skip to content

Commit 028e7a8

Browse files
authored
atcoder solutions in cpp
1 parent 3b8466b commit 028e7a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Add Sub Mul.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <iostream>
2+
#include <algorithm>
3+
using namespace std;
4+
5+
int main()
6+
{
7+
int a, b;
8+
cin >> a >> b;
9+
int add = (a + b), sub = (a - b), mul = (a * b);
10+
int res = max({ add,sub,mul });
11+
12+
cout << res << endl;
13+
return 0;
14+
}

0 commit comments

Comments
 (0)