알고리즘

[알고리즘] 백준 26545 - Mathematics (C++)

blueberrysoda 2024. 12. 18. 23:27

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

#include <iostream>
using namespace std;

int main(){
    int N, inp, Ans = 0;
    cin >> N;

    for(int i=0; i<N; i++){
        cin >> inp;
        Ans += inp;
    }
    cout << Ans << "\n";
    return 0;
}