結果
問題 | No.513 宝探し2 |
ユーザー |
|
提出日時 | 2017-05-05 22:33:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 26 ms / 2,000 ms |
コード長 | 784 bytes |
コンパイル時間 | 1,130 ms |
コンパイル使用メモリ | 108,980 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 4.00 |
最終ジャッジ日時 | 2024-07-17 00:57:02 |
合計ジャッジ時間 | 2,246 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#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 < b) {cout << 100000 - b + c << " " << 50000 + c << endl;cin >> d;cout << 100000 - b + c << " " << 50000 - c << endl;}else {cout << 0 + a - c << " " << 50000 + c << endl;cin >> d;cout << 0 + a - c << " " << 50000 - c << endl;}return 0;}