結果

問題 No.1429 Simple Dowsing
ユーザー mujmilkmujmilk
提出日時 2021-03-26 15:11:30
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 1,432 ms
コンパイル使用メモリ 163,556 KB
実行使用メモリ 24,372 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:16:55
合計ジャッジ時間 2,780 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,628 KB
testcase_01 AC 23 ms
24,024 KB
testcase_02 AC 22 ms
23,544 KB
testcase_03 AC 22 ms
24,372 KB
testcase_04 AC 23 ms
24,336 KB
testcase_05 AC 22 ms
23,556 KB
testcase_06 AC 22 ms
23,832 KB
testcase_07 AC 22 ms
24,036 KB
testcase_08 AC 24 ms
23,904 KB
testcase_09 AC 24 ms
23,640 KB
testcase_10 AC 22 ms
24,048 KB
testcase_11 AC 24 ms
23,820 KB
testcase_12 AC 23 ms
23,496 KB
testcase_13 AC 23 ms
24,036 KB
testcase_14 AC 23 ms
24,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,x,y;
    cout<<"? 0 0\n";
    cin>>a;
    cout<<"? 100 0\n";
    cin>>b;
    x=(a-b)/200+50;
    y=sqrt(double(a-x*x));
    cout<<"! "<<x<<" "<<y<<"\n";
}
0