結果

問題 No.1429 Simple Dowsing
ユーザー harurunharurun
提出日時 2021-03-14 14:40:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 24,324 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:04:52
合計ジャッジ時間 1,868 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
23,664 KB
testcase_01 AC 41 ms
24,324 KB
testcase_02 AC 41 ms
23,560 KB
testcase_03 AC 42 ms
23,832 KB
testcase_04 AC 42 ms
23,724 KB
testcase_05 AC 40 ms
23,976 KB
testcase_06 AC 41 ms
24,324 KB
testcase_07 AC 41 ms
23,736 KB
testcase_08 AC 42 ms
23,676 KB
testcase_09 AC 42 ms
24,324 KB
testcase_10 AC 41 ms
24,324 KB
testcase_11 AC 41 ms
23,412 KB
testcase_12 AC 42 ms
24,036 KB
testcase_13 AC 40 ms
24,012 KB
testcase_14 AC 40 ms
24,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("?",0,0);d=int(input());e=[]
for x in range(101):
 for y in range(101):
  if x*x+y*y==d:e.append([x,y])
print("?",c:=e[0][0],f:=e[0][1]);r=int(input());[print("!",i[0],i[1])for i in e if (i[0]-c)**2+(i[1]-f)**2==r]
0