結果
問題 | No.369 足し間違い |
ユーザー |
|
提出日時 | 2020-06-08 16:45:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 2,071 ms |
コンパイル使用メモリ | 164,816 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 22:36:09 |
合計ジャッジ時間 | 3,106 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int n; cin>>n; int ans=0; rep(i,n){ int t; cin>>t; ans+=t; } int a; cin>>a; cout << ans-a << endl; }