結果
問題 |
No.1091 Range Xor Query
|
ユーザー |
![]() |
提出日時 | 2020-07-18 21:40:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 601 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 232 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 30,688 KB |
最終ジャッジ日時 | 2024-12-14 08:41:30 |
合計ジャッジ時間 | 15,024 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n,q=map(int,input().split()) A=[int(i) for i in input().split()] AA=[0] for a in A: AA.append(AA[-1]^a) for _ in range(q): l,r=map(int,input().split()) print(AA[r]^AA[l-1])