結果

問題 No.514 宝探し3
ユーザー 🍮かんプリン🍮かんプリン
提出日時 2020-06-04 17:36:37
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 468 bytes
コンパイル時間 1,108 ms
コンパイル使用メモリ 143,868 KB
実行使用メモリ 24,396 KB
平均クエリ数 2.75
最終ジャッジ日時 2023-09-24 03:38:50
合計ジャッジ時間 3,595 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 24 ms
23,844 KB
testcase_09 AC 25 ms
24,084 KB
testcase_10 WA -
testcase_11 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2020.06.04 17:36:33
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;

int main() {
    cout << 0 << " " << 0 << endl;
    ll s;cin >> s;
    if (s == 0) {
        return 0;
    }
    cout << 1000000000 << " " << 0 << endl;
    ll t; cin >> t;
    if (t == 0) {
        return 0;
    }
    cout << (s + 1000000000 - t) / 2 << (s - 1000000000 + t) / 2 << " " << endl;
    return 0;
}
0