結果

問題 No.369 足し間違い
ユーザー hiragn
提出日時 2019-07-18 04:44:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 1,631 ms
コンパイル使用メモリ 166,556 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 05:45:21
合計ジャッジ時間 2,349 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n;
    cin >> n;

    int tot = 0;
    for (int i = 0; i < n; ++i) {
        int t;
        cin >> t;
        tot += t;
    }

    int v;
    cin >> v;
    
    cout << tot - v << endl;
    return 0;
}
0