結果
| 問題 |
No.1429 Simple Dowsing
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-14 14:08:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 2,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 82,320 KB |
| 実行使用メモリ | 76,408 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-17 10:47:27 |
| 合計ジャッジ時間 | 2,167 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()