結果

問題 No.1429 Simple Dowsing
ユーザー harurunharurun
提出日時 2021-03-14 19:00:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 24,216 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:08:42
合計ジャッジ時間 1,843 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
23,928 KB
testcase_01 AC 43 ms
23,484 KB
testcase_02 AC 40 ms
23,892 KB
testcase_03 AC 39 ms
23,488 KB
testcase_04 AC 40 ms
23,652 KB
testcase_05 AC 40 ms
23,652 KB
testcase_06 AC 40 ms
23,720 KB
testcase_07 AC 41 ms
23,784 KB
testcase_08 AC 40 ms
23,712 KB
testcase_09 AC 40 ms
23,604 KB
testcase_10 AC 40 ms
23,596 KB
testcase_11 AC 39 ms
23,812 KB
testcase_12 AC 40 ms
23,928 KB
testcase_13 AC 41 ms
23,636 KB
testcase_14 AC 40 ms
24,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0");a=int(input());print("? 0 100");b=int(input())
for i in range(101):
 [print("!",i,j)for j in range(101)if i*i+j*j==a and i*i+(100-j)**2==b]
0