結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー goo bebes
提出日時 2024-05-14 20:06:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 932 ms
コンパイル使用メモリ 62,860 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-20 10:03:11
合計ジャッジ時間 2,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>


int main()
{
    int a;
    std::uint64_t temp, sum = 0;
    std::cin >> a;
    
    for (int i = 0; i < a; ++i) {
        std::cin >> temp;
        sum += temp;
    }
    std::cout << sum;
}
0