Home BOJ 10952 A+B-5
Post
Cancel

BOJ 10952 A+B-5

A + B - 5 [브론즈 5]


문제 링크

https://www.acmicpc.net/problem/10952

풀이

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<iostream>
using namespace std;

int main(void)
{
    int a, b;

    while(true) {
        cin >> a >> b;
        if(a == b && b == 0) {
            break;
        }

        cout << a + b << "\n";
    }

    return 0;
}
This post is licensed under CC BY 4.0 by the author.