백준 algorithm

백준 A + B -6

cosmohoo 2020. 2. 12. 09:50
반응형

문제 설명

#include <iostream>
#include <vector>
#include <utility>
#include <algorithm>

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int A, B, N;
    char c;
    cin>>N;
    for(int i=0; i<N; ++i)
    {
        cin>>A>>c>>B;
        cout<<A+B<<'\n';
    }
    
    return 0;
}
반응형