結果
問題 |
No.1429 Simple Dowsing
|
ユーザー |
![]() |
提出日時 | 2025-03-24 18:44:17 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 379 ms |
コンパイル使用メモリ | 82,024 KB |
実行使用メモリ | 84,540 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2025-03-24 18:44:20 |
合計ジャッジ時間 | 3,447 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 15 |
ソースコード
# k 乗根 def sqrt(n: int, k = 2): l = k - 1 if not n: return 0 y = 1 << (n.bit_length() + l) // k x = y + 1 while y < x: x = y y = (l * x + n // (x ** l)) // k return x print('?, 0, 0') d1 = int(input()) print('?, 100, 0') d2 = int(input()) a = (d1 - d2 + 10**4)//200 b = sqrt(d1 - a**2) print('!', a, b)