結果

問題 No.1429 Simple Dowsing
ユーザー miya145592miya145592
提出日時 2023-05-09 01:00:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 293 bytes
コンパイル時間 1,013 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 91,812 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-08-16 22:53:02
合計ジャッジ時間 3,838 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
87,524 KB
testcase_01 AC 94 ms
86,708 KB
testcase_02 AC 97 ms
87,004 KB
testcase_03 AC 96 ms
87,200 KB
testcase_04 AC 98 ms
91,812 KB
testcase_05 AC 95 ms
87,456 KB
testcase_06 AC 95 ms
86,868 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 96 ms
87,324 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 95 ms
87,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0")
d = int(input())
for a in range(101):
    for b in range(101):
        if a*a+b*b==d:
            print(f"? {a} {b}")
            d2 = int(input())
            if d2==0:
                print(f"! {a} {b}")
            else:
                print(f"! {b} {a}")
            exit()
0