나의 발자취

백준 11021번 본문

computer language/C++

백준 11021번

달모드 2020. 9. 14. 02:11
#include<iostream>
using namespace std;

int main(){
    int n,a,b;
    cin >> n;
    for (int i=1; i<=n; i++){
        cin >> a >> b;
        cout << "Case #" << i  << ": " << a+b << endl;}
}


input 여러개할때 >> a, >>b로 한줄로 작성.

'computer language > C++' 카테고리의 다른 글

[10818] 최소, 최대  (0) 2020.11.18
8393. 팩토리얼 계산 (풀이 두개, 메모리 비교)  (0) 2020.10.13
백준 1330. 시계  (0) 2020.10.07
백준 1008 - A/B 출력  (0) 2020.10.07
백준 2741  (0) 2020.09.14
Comments