結果
問題 | No.513 宝探し2 |
ユーザー | olphe |
提出日時 | 2017-05-05 22:29:51 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 770 bytes |
コンパイル時間 | 1,239 ms |
コンパイル使用メモリ | 108,128 KB |
実行使用メモリ | 24,408 KB |
平均クエリ数 | 4.00 |
最終ジャッジ日時 | 2023-09-23 13:17:27 |
合計ジャッジ時間 | 2,666 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
23,376 KB |
testcase_01 | AC | 22 ms
23,400 KB |
testcase_02 | AC | 22 ms
24,240 KB |
testcase_03 | AC | 23 ms
24,360 KB |
testcase_04 | AC | 24 ms
24,300 KB |
testcase_05 | AC | 24 ms
23,436 KB |
testcase_06 | AC | 24 ms
23,520 KB |
testcase_07 | AC | 23 ms
23,496 KB |
testcase_08 | WA | - |
testcase_09 | AC | 23 ms
23,676 KB |
testcase_10 | AC | 24 ms
24,240 KB |
testcase_11 | WA | - |
ソースコード
#include "iostream" #include "climits" #include "list" #include "queue" #include "stack" #include "set" #include "functional" #include "algorithm" #include "math.h" #include "utility" #include "string" #include "map" #include "unordered_map" #include "iomanip" #include "random" using namespace std; const long long int MOD = 1000000007; int a, b, c, d; int main() { ios::sync_with_stdio(false); cout << "0 " << "50000\n"; cin >> a; cout << "100000 " << "50000\n"; cin >> b; c = a + b - 100000; c /= 2; if (a > c) { cout << 100000 - b + c << " " << 50000 + c << endl; cout << 100000 - b + c << " " << 50000 - c << endl; } else { cout << 100000 + a + c << " " << 50000 + c << endl; cout << 100000 + a + c << " " << 50000 - c << endl; } return 0; }