結果
| 問題 | No.1429 Simple Dowsing |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-14 14:08:34 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 2,000 ms |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 78,248 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-04-01 01:28:22 |
| 合計ジャッジ時間 | 1,934 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
import sys
a,b = 0,100
c,d = 0,0
print("?",a,b)
sys.stdout.flush()
a1 = int(input())
print("?",c,d)
sys.stdout.flush()
a2 = int(input())
for i in range(0,101):
for j in range(0,101):
if (a-i)**2+(b-j)**2 == a1 and (c-i)**2+(d-j)**2 == a2:
print("!",i,j)
sys.stdout.flush()
exit()