結果

問題 No.514 宝探し3
ユーザー NasatameNasatame
提出日時 2017-05-05 22:48:12
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 411 bytes
コンパイル時間 797 ms
コンパイル使用メモリ 51,064 KB
実行使用メモリ 24,372 KB
平均クエリ数 2.67
最終ジャッジ日時 2023-09-23 13:25:02
合計ジャッジ時間 2,134 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,556 KB
testcase_01 AC 25 ms
23,664 KB
testcase_02 AC 25 ms
24,132 KB
testcase_03 AC 25 ms
23,628 KB
testcase_04 AC 26 ms
24,072 KB
testcase_05 AC 26 ms
24,372 KB
testcase_06 AC 26 ms
24,348 KB
testcase_07 AC 26 ms
24,372 KB
testcase_08 AC 25 ms
23,856 KB
testcase_09 AC 26 ms
23,640 KB
testcase_10 AC 26 ms
24,300 KB
testcase_11 AC 26 ms
23,328 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