結果

問題 No.369 足し間違い
ユーザー conf
提出日時 2016-09-25 14:52:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 58,708 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 11:54:45
合計ジャッジ時間 1,234 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    int N,V=0;
    cin>>N;
    while(N--){
        int a;
        cin>>a;
        V+=a;
    }
    cin>>N;
    cout<<V-N<<endl;
    return 0;
}
0