Solutions of A + B - MarisaOJ: Marisa Online Judge

Solutions of A + B

Select solution language

Write solution here.


omegumunot    Created at    2 likes

# A + B ## Idea In C++ we can read input values using ```std::cin```. After reading in $A$ and $B$, we can print the sum to solve the problem in $O(1)$. ## Code ``` #include <bits/stdc++.h> using namespace std; using ll = long long; const int MOD = 1E9 + 7; const int INF = 1E9; const ll INFLL = 1E18; int a; int b; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> a >> b; cout << a + b << "\n"; } ```