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"
#include "Joi.h"
using namespace std;
void Joi(int N, int M, int A[], int B[], long long X, int T) {
assert(T == 3);
for(int i=0; i<N; i++)
MessageBoard(i ,bool(X&(1LL<<(i%60))));
}
#include "bits/stdc++.h"
#include "Ioi.h"
using namespace std;
long long Ioi(int N, int M, int A[], int B[], int P, int V, int T) {
assert(T == 3);
bool b = V;
while(P%60 || N-P<60)
b = Move(--P);
long long X = b;
for(int i=1; i<60; i++){
b = Move(++P);
X |= b*(1LL<<i);
}
return X;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |