結果
問題 | No.514 宝探し3 |
ユーザー |
|
提出日時 | 2017-05-05 22:37:27 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 530 bytes |
コンパイル時間 | 537 ms |
コンパイル使用メモリ | 63,604 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 3.50 |
最終ジャッジ日時 | 2024-07-16 12:56:55 |
合計ジャッジ時間 | 1,761 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream>using namespace std;struct iostream_init_struct{iostream_init_struct(){std::cin.tie(0);std::cin.sync_with_stdio(false);}} iostream_init;int main(){int a00, aN0, a0N;cout << "0 0" << endl;cin >> a00;if (a00 == 0) return 0;cout << "1000000000 0" << endl;cin >> aN0;if (aN0 == 0) return 0;cout << "0 1000000000" << endl;cin >> a0N;if (a0N == 0) return 0;int N = 1000000000;int X = (a00 + a0N - N) / 2;int Y = (a00 + aN0 - N) / 2;cout << X << ' ' << Y << endl;}