結果

問題 No.513 宝探し2
ユーザー Naoyk1212Naoyk1212
提出日時 2017-06-06 00:13:37
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 509 ms
コンパイル使用メモリ 70,648 KB
実行使用メモリ 24,252 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 01:19:39
合計ジャッジ時間 1,787 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
23,364 KB
testcase_01 AC 25 ms
23,364 KB
testcase_02 AC 24 ms
23,424 KB
testcase_03 AC 24 ms
23,628 KB
testcase_04 AC 24 ms
23,388 KB
testcase_05 AC 23 ms
24,252 KB
testcase_06 AC 26 ms
23,376 KB
testcase_07 AC 23 ms
23,640 KB
testcase_08 AC 22 ms
23,604 KB
testcase_09 AC 23 ms
23,208 KB
testcase_10 AC 23 ms
24,168 KB
testcase_11 AC 23 ms
23,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <stack>
#include <queue>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
using namespace std;

signed main(){
    int a, b;
    cout << 0 << " " << 0 << endl;
    cin >> a;
    cout << a << " " << 0 << endl;
    cin >> b;

    cout << a - b / 2 << " " << b / 2 << endl;
}
0