結果

問題 No.369 足し間違い
ユーザー Series_205
提出日時 2019-10-23 22:06:12
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 628 ms
コンパイル使用メモリ 64,516 KB
最終ジャッジ日時 2025-01-08 00:52:01
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int n,a,sum,v;
int main(){
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>a;
        sum+=a;
    }
    cin>>v;
    cout<<sum-v<<endl;
    return 0;
}
0