結果
問題 |
No.1742 Binary Indexed Train
|
ユーザー |
|
提出日時 | 2022-09-07 10:53:37 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 429 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-22 14:26:15 |
合計ジャッジ時間 | 3,168 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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:]])