結果

問題 No.1429 Simple Dowsing
ユーザー nohakai3nohakai3
提出日時 2022-07-06 15:47:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 24,360 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-08-23 13:55:33
合計ジャッジ時間 2,373 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
23,460 KB
testcase_01 AC 39 ms
23,568 KB
testcase_02 AC 38 ms
23,468 KB
testcase_03 AC 39 ms
23,492 KB
testcase_04 AC 37 ms
23,452 KB
testcase_05 AC 38 ms
24,348 KB
testcase_06 AC 38 ms
23,912 KB
testcase_07 AC 38 ms
24,360 KB
testcase_08 AC 37 ms
23,632 KB
testcase_09 AC 36 ms
23,456 KB
testcase_10 AC 36 ms
23,856 KB
testcase_11 AC 38 ms
24,048 KB
testcase_12 AC 37 ms
24,060 KB
testcase_13 AC 37 ms
23,688 KB
testcase_14 AC 36 ms
23,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#全探索
print("? 0 0")
n=int(input())
print("? 100 0")
m=int(input())

a=(n-m+10000)//200
b=n-a**2
for i in range(101):
    if i**2 == b:
        b=i
        break
ans="!"+" "+str(a)+" "+str(b)
print(ans)
0