結果

問題 No.513 宝探し2
ユーザー NasatameNasatame
提出日時 2017-05-05 22:44:10
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 1,075 ms
コンパイル使用メモリ 51,168 KB
実行使用メモリ 24,360 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-24 01:03:56
合計ジャッジ時間 1,550 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
23,532 KB
testcase_01 AC 20 ms
24,060 KB
testcase_02 AC 20 ms
24,312 KB
testcase_03 AC 20 ms
23,376 KB
testcase_04 AC 19 ms
23,412 KB
testcase_05 AC 21 ms
24,348 KB
testcase_06 AC 19 ms
23,532 KB
testcase_07 AC 20 ms
24,036 KB
testcase_08 AC 20 ms
24,024 KB
testcase_09 AC 20 ms
23,376 KB
testcase_10 AC 20 ms
24,360 KB
testcase_11 AC 20 ms
24,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

// 座標(0,0)から(0,99)までを試す。
int main(){
    cout << 0 << " " << 0 << endl;
    int d;
    cin>>d;
    
    if(d==0)return 0;
    
    int a = d;
    cout << d << " " << 0 << endl;
    
    cin >> d;
    
    if(d==0)return 0;
    
    cout << a - d/2 << " " << d/2 << endl;
    
    cin >> d;
    
    if(d == 0) return 0;
    
    return 0;
}

// 5 7
0