# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
22634 | 버거킹 송죽SK점 우수고객 (#40) | Window Xor (KRIII5_WX) | C++14 | 1000 ms | 10612 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pp;
typedef pair<ll,ll> pll;
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define x first
#define y second
int n, k;
ll t;
int a[2][100010];
int sp[20][100010];
void trans(int h, int F, int T){
ll w = (1ll << h) % n;
if(w == 0){
if(k%2 == 0) for(int i=0; i<n; ++i) a[T][i]=0;
else for(int i=0; i<n; ++i) a[T][i]=a[F][i];
return;
}
for(int i=0; i<n; ++i){
sp[0][i] = a[F][i];
}
for(int i=1; i<=16; ++i){
for(int j=0; j<n; ++j){
sp[i][j]=sp[i-1][j] ^ sp[i-1][(j+w*(1<<(i-1)))%n];
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |