Skip to content

Commit 4454560

Browse files
committed
atcoder/abc050A
1 parent c211c04 commit 4454560

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

atcoder/abc050/A/main.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
using ll = int64_t;
5+
using ff = long double;
6+
7+
int main() {
8+
ios_base::sync_with_stdio(false);
9+
cin.tie(0); cout.tie(0);
10+
11+
int A, B;
12+
string op;
13+
14+
cin >> A >> op >> B;
15+
16+
int ans = 0;
17+
if (op == "+") {
18+
ans = A + B;
19+
} else if (op == "-") {
20+
ans = A - B;
21+
} else throw;
22+
cout << ans << endl;
23+
24+
return 0;
25+
}

0 commit comments

Comments
 (0)