結果

問題 No.514 宝探し3
ユーザー TakatenTakaten
提出日時 2017-05-05 23:14:55
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 1,879 ms
コンパイル使用メモリ 163,896 KB
実行使用メモリ 24,336 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-23 13:46:09
合計ジャッジ時間 2,764 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,352 KB
testcase_01 AC 23 ms
23,628 KB
testcase_02 AC 22 ms
23,424 KB
testcase_03 AC 23 ms
24,336 KB
testcase_04 AC 23 ms
23,664 KB
testcase_05 AC 23 ms
24,048 KB
testcase_06 AC 22 ms
23,532 KB
testcase_07 AC 23 ms
24,336 KB
testcase_08 AC 22 ms
23,604 KB
testcase_09 AC 23 ms
23,844 KB
testcase_10 AC 23 ms
23,832 KB
testcase_11 AC 23 ms
23,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    cout << 0 << " " << 0 << endl;

    int d;
    cin >> d;

    cout << d << " " << 0 << endl;

    int d2;

    cin >> d2;

    d2 /= 2;

    cout << d - d2 << " " << d2 << endl;

    return 0;
}
0