제출 #882088

#제출 시각아이디문제언어결과실행 시간메모리
882088preskoXOR (IZhO12_xor)C++14
0 / 100
0 ms2396 KiB
#include<iostream> #include<bits/stdc++.h> #define MAXN 250010 using namespace std; int a[MAXN]; long long pre[MAXN]; int main() { int n,st=1; long long x,best=0,curr=0; ios_base::sync_with_stdio(false); cin.tie(0); cin>>n>>x; for(int i=1;i<=n;i++) { cin>>a[i]; curr^=a[i]; best++; if(curr<x){curr^=a[st];st++;best--;} } cout<<st<<" "<<best<<"\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...