# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
100048 | errorgorn | Broken Device (JOI17_broken_device) | C++14 | 76 ms | 3072 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 "Annalib.h"
void Anna( int N, long long X, int K, int P[] ){
for (int x=0;x<61;x++){
if ((X&1)==1){
Set(x<<1,1);
Set( (x<<1)+1,1);
}
else{
Set(x<<1,0);
Set( (x<<1) +1,0);
}
X>>=1;
}
for (int x=122;x<N;x++) Set(x,0);
}
#include "Brunolib.h"
long long Bruno( int N, int A[] ){
long long ans=0;
for (int x=60;x>=0;x--){
ans+=A[x<<1]|A[(x<<1)+1];
ans<<=1;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |