# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
100026 | lyc | Broken Device (JOI17_broken_device) | C++14 | 68 ms | 3320 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"
#include <bits/stdc++.h>
using namespace std;
void Anna( int N, long long X, int K, int P[] ){
// for( int i = 0; i < N; i ++ ){
// Set( i, 0 );
// }
for (int i = 0; i < 60; ++i) {
int b = ((X & (1LL<<i)) > 0 ? 1 : 0);
Set(2*i, b);
Set(2*i+1, b);
}
for (int i = 120; i < N; ++i) {
Set(i, 0);
}
//cout << X << endl;
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno( int N, int A[] ){
long long X = 0;
for (int i = 0; i < 60; ++i) {
if (A[2*i] | A[2*i+1]) {
X |= (1LL<<i);
}
}
//cout << X << endl;
return X;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |