Submission #882088

# Submission time Handle Problem Language Result Execution time Memory
882088 2023-12-02T15:08:14 Z presko XOR (IZhO12_xor) C++14
0 / 100
0 ms 2396 KB
#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 time Memory Grader output
1 Incorrect 0 ms 2396 KB Output isn't correct
2 Halted 0 ms 0 KB -