結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-05-13 23:12:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 54,216 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 17:36:17 |
| 合計ジャッジ時間 | 975 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main()
{
int N;
cin >> N;
long long sum = 0;
long long n;
while(N-->0){
cin >> n;
sum += n;
}
long long ans;
cin >> ans;
cout << sum - ans << endl;
}