結果
問題 |
No.1673 Lamps on a line
|
ユーザー |
![]() |
提出日時 | 2021-10-08 15:19:46 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 194 bytes |
コンパイル時間 | 317 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 258,560 KB |
最終ジャッジ日時 | 2024-07-23 03:21:59 |
合計ジャッジ時間 | 5,374 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 5 |
ソースコード
n, q = list(map(int, input().split())) xex = 0 for i in range(q): l, r = list(map(int, input().split())) x = (pow(2, (r)) - pow(2, (l-1))) print(bin(x:=x^xex).count("1")) xex = x