結果

問題 No.513 宝探し2
ユーザー paruparu
提出日時 2017-05-05 22:59:04
言語 C++11
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 433 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 51,256 KB
実行使用メモリ 35,624 KB
最終ジャッジ日時 2023-09-24 01:06:00
合計ジャッジ時間 7,060 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main () {
    cout << 0 << ' ' << 0 << endl;
    int d;
    cin >> d;
    if (d <= 100000) {
        cout << 0 << ' ' << d;
        int D;
        cin >> D;
        cout << D / 2 << ' ' << d - D / 2 << endl;
    }
    else {
        cout << d - 100000 << ' ' << 100000 << endl;
        int D;
        cin >> D;
        cout << d - 100000 + D / 2 << ' ' << 100000 - D / 2 << endl;
    }
}
0