結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
_yoshih_
|
| 提出日時 | 2018-09-27 22:50:53 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 454 bytes |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 62,976 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-12 04:37:33 |
| 合計ジャッジ時間 | 1,057 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
static void setup()
{
cin.tie(0);
ios::sync_with_stdio(false);
}
static void run()
{
static const int kExpectSum = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9+ 10;
auto sum = 0;
for (auto i = 0; i < 9; ++i) {
int b;
cin >> b;
sum += b;
}
cout << kExpectSum - sum << endl;
}
int main(int argc, char **argv)
{
setup();
run();
return 0;
}
_yoshih_