結果

問題 No.1091 Range Xor Query
ユーザー keisuke6keisuke6
提出日時 2022-07-31 16:31:32
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 395 bytes
コンパイル時間 3,622 ms
コンパイル使用メモリ 262,908 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-28 04:09:00
合計ジャッジ時間 27,117 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 72 ms
4,376 KB
testcase_04 AC 297 ms
4,384 KB
testcase_05 AC 523 ms
4,376 KB
testcase_06 AC 10 ms
4,380 KB
testcase_07 AC 422 ms
4,380 KB
testcase_08 AC 652 ms
4,380 KB
testcase_09 AC 225 ms
4,376 KB
testcase_10 AC 473 ms
4,376 KB
testcase_11 AC 645 ms
4,376 KB
testcase_12 AC 364 ms
4,376 KB
testcase_13 AC 658 ms
4,376 KB
testcase_14 AC 509 ms
4,376 KB
testcase_15 AC 583 ms
4,380 KB
testcase_16 AC 393 ms
4,376 KB
testcase_17 AC 764 ms
4,376 KB
testcase_18 AC 65 ms
4,380 KB
testcase_19 AC 107 ms
4,376 KB
testcase_20 AC 611 ms
4,376 KB
testcase_21 AC 195 ms
4,376 KB
testcase_22 AC 674 ms
4,380 KB
testcase_23 TLE -
testcase_24 TLE -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;

int main(){
    int N,M;
    cin>>N>>M;
    vector<int> S(N);
    for(int i=0;i<N;i++) cin>>S[i];
    for(int j=0;j<M;j++){
        int ans = 0;
        int l,r;
        cin>>l>>r;
        for(int i=l-1;i<r;i++) ans ^= S[i];
        cout<<ans<<endl;
    }
}
0