結果
問題 | No.1429 Simple Dowsing |
ユーザー | hiragn |
提出日時 | 2022-10-25 04:24:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 10,636 KB |
実行使用メモリ | 24,320 KB |
平均クエリ数 | 2.93 |
最終ジャッジ日時 | 2023-09-16 05:02:08 |
合計ジャッジ時間 | 1,908 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 46 ms
23,648 KB |
testcase_01 | AC | 39 ms
23,968 KB |
testcase_02 | AC | 40 ms
24,204 KB |
testcase_03 | WA | - |
testcase_04 | AC | 38 ms
23,680 KB |
testcase_05 | AC | 39 ms
23,976 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 41 ms
23,364 KB |
testcase_09 | AC | 41 ms
24,200 KB |
testcase_10 | AC | 40 ms
24,232 KB |
testcase_11 | AC | 39 ms
23,660 KB |
testcase_12 | WA | - |
testcase_13 | AC | 41 ms
23,568 KB |
testcase_14 | AC | 40 ms
24,076 KB |
ソースコード
print("? 0 0") d1 = int(input()) if d1 == 0: exit(print("! 0 0")) print("? 100 100") d2 = int(input()) if d2 == 0: exit(print("! 100 100")) for x in range(101): for y in range(101): if x ** 2 + y ** 2 == d1 and (x - 100) ** 2 + (y - 100) ** 2 == d2: exit(print("! {} {}".format(x, y)))