結果
| 問題 | No.481 1から10 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-02-11 01:47:07 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 482 bytes |
| 記録 | |
| コンパイル時間 | 1,636 ms |
| コンパイル使用メモリ | 179,116 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-02-11 01:47:10 |
| 合計ジャッジ時間 | 2,763 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve() {
int n = 9 ;
vector<int>arr(n);
for(auto &a : arr) cin >>a ;
int nm = (10 * (10 +1)) /2;
int ans= accumulate(arr.begin() , arr.end() , 0LL);
cout << nm - ans;
// cout<< nm - accumulate(arr.begin() , arr.end() , 0LL);
}
signed main() {
int t = 1;
// cin >> t;
while (t--) {
solve();
cout<<endl;
}
return 0;
}
vjudge1