結果
問題 | No.1895 Mod 2 |
ユーザー |
![]() |
提出日時 | 2022-12-27 18:55:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,785 ms / 2,000 ms |
コード長 | 383 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 316,088 KB |
最終ジャッジ日時 | 2024-11-22 05:01:53 |
合計ジャッジ時間 | 19,563 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 11 |
ソースコード
from bisect import bisect_right as bra = []for i in range(1,10**15,2):if i*i>10**15:breaka.append(i*i)p = [1<<i for i in range(51)]T = int(input())# T = 10000for i in range(T):L, R = map(int, input().split())# L, R = 1, 10**15res = 0for j in range(51):n = br(a,R//p[j])-br(a,(L-1)//p[j])res += nres %= 2print(res)