結果
問題 |
No.1091 Range Xor Query
|
ユーザー |
|
提出日時 | 2020-06-24 18:25:08 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 554 ms / 2,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 294 ms |
コンパイル使用メモリ | 82,788 KB |
実行使用メモリ | 121,468 KB |
最終ジャッジ日時 | 2024-07-03 20:13:11 |
合計ジャッジ時間 | 12,737 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 |
ソースコード
N,Q=map(int,input().split()) a=[0]+list(map(int,input().split())) x=[0] for i in range(1,N+1): x.append(x[-1]^a[i]) #print(x) for i in range(Q): s,e=map(int,input().split()) print(x[e]^x[s-1])