結果
問題 | No.369 足し間違い |
ユーザー | __DielsAlder__ |
提出日時 | 2019-01-17 17:23:00 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 607 ms |
コンパイル使用メモリ | 66,888 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 10:08:00 |
合計ジャッジ時間 | 990 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#include<iostream> #include<algorithm> #include<string> #include<cstdlib> #include<map> #include<iomanip> #include<sstream> using namespace std; int main() { long long int n, a[10005],sum=0,v; cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; sum += a[i]; } cin >> v; cout << sum - v<<endl; }