よじろめ覚書

私の理解度重視のソースコードです。

2019-08-07から1日間の記事一覧

ABC050A - Addition and Subtraction Easy

ABC

問題:A - Addition and Subtraction Easy #include <iostream> using namespace std; int main(void){ int a, b; char op; cin.tie(0); ios::sync_with_stdio(false); cin >> a >> op >> b; cout << (op == '+'? a + b : a - b) << "\n"; return 0; }</iostream>