結果
| 問題 | No.1895 Mod 2 |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2022-04-08 23:19:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 292 bytes |
| 記録 | |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 86,016 KB |
| 実行使用メモリ | 858,664 KB |
| 最終ジャッジ日時 | 2026-05-22 14:21:35 |
| 合計ジャッジ時間 | 7,132 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 1 |
| other | -- * 11 |
ソースコード
from bisect import bisect_right
a = []
for i in range(1, 10**8+1):
j = i*i
if j > 10**15: break
while j <= 10**15:
a.append(j)
j *= 2
a.sort()
for _ in range(int(input())):
l, r = map(int, input().split())
print((bisect_right(a, r)-bisect_right(a, l-1))%2)
ニックネーム