結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-13 22:44:22 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 178 bytes |
| コンパイル時間 | 397 ms |
| コンパイル使用メモリ | 56,104 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-05 17:04:13 |
| 合計ジャッジ時間 | 1,126 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int N,v,A,ans;
int main(){
cin>>N;
for(int i=0;i<N;i++)
{
cin>>A;
ans+=A;
}
cin>>v;
cout<<ans-v<<endl;
}