結果
| 問題 |
No.369 足し間違い
|
| コンテスト | |
| ユーザー |
ui_mtc
|
| 提出日時 | 2020-03-14 19:50:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 1,450 ms |
| コンパイル使用メモリ | 165,132 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 21:27:03 |
| 合計ジャッジ時間 | 2,048 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 |
ソースコード
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
int N;
cin >> N;
int ans = 0;
for( int i = 0; i < N; i++ ){
int A;
cin >> A;
ans += A;
}
int V;
cin >> V;
cout << ans-V << endl;
}
ui_mtc