알고리즘

[알고리즘] 백준 11023 - 더하기 3 (C++)

blueberrysoda 2024. 10. 15. 23:04

[문제 링크] : https://www.acmicpc.net/problem/11023

#include <iostream>
#include <string>
using namespace std;

int N;
int Ans; 

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    while(cin >> N){
        Ans += N;
    }

    cout << Ans << "\n";
    return 0;
}