답안 #553967

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
553967 2022-04-27T12:48:59 Z Fidan XORanges (eJOI19_xoranges) C++17
0 / 100
472 ms 10236 KB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll inf=(1e18);
const ll N=1'000'010;

int main(){
	
	ll n, q, i;
	cin>>n>>q;
	
	vector<ll> v(n+1, 0);
	vector<ll> dp(n+1, 0);
	
	for(i=1; i<=n; i++){
		cin>>v[i];
		dp[i]=(dp[i-1]^v[i]);
	}
	
	while(q--){
		ll t;
		cin>>t;
		ll l, r;
		cin>>l>>r;
		cout<<(dp[r]^dp[l-1])<<endl;
	}
	
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 472 ms 10236 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 340 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -