# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1137843 | nikolashami | Norela (info1cup18_norela) | C++20 | 86 ms | 328 KiB |
#include<iostream>
using namespace std;
using ll=long long;
ll c[26],x,pc2;
int ans,nw,msk,cans;
int n,m;
void r(int i){
if(i>=m){
if(!x){
int pc1=cans;
if(pc1<pc2)return;
if(pc1>pc2){ans=nw;cans=pc2;}
else ans=max(ans,nw);
}
return;
}
r(i+1);
x^=c[i];
msk^=(1<<i);
nw^=(1<<(m-i-1));
++pc2;
r(i+1);
msk^=(1<<i);
nw^=(1<<(m-i-1));
x^=c[i];
--pc2;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |