結果
問題 |
No.1091 Range Xor Query
|
ユーザー |
![]() |
提出日時 | 2024-07-17 09:37:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 1,476 ms / 2,000 ms |
コード長 | 199 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,808 KB |
最終ジャッジ日時 | 2024-07-17 09:37:41 |
合計ジャッジ時間 | 27,597 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 27 |
ソースコード
N,Q=map(int,input().split()) A=[0]+list(map(int,input().split())) for i in range(1,N+1): A[i]^=A[i-1] for q in range(Q): l,r=map(int,input().split()) l-=1 ans=A[l]^A[r] print(ans)