結果
| 問題 | No.1742 Binary Indexed Train |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-07 10:53:37 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 280 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-28 04:59:38 |
| 合計ジャッジ時間 | 4,741 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 32 |
ソースコード
_input = list(map(lambda x:x.split(' '),input().split('\n')))
n,q = _input[0]
def max_int(num):
result = 0
while (num % 2) != 1:
num /= 2
result += 1
return result
print([abs(s-t)/2**min(max_int(s),max_int(t),max_int(abs(s-t))) for s,t in _input[1:]])