# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
42346 | milmillin | Poklon (COCI17_poklon7) | C++14 | 375 ms | 72092 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 <cstdio>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int l[1000100];
int r[1000100];
struct bigInt {
unsigned int a;
int p;
bigInt ex() const {
return bigInt{a,p+1};
}
};
bool operator< (const bigInt &a, const bigInt &b) {
if (a.p<b.p) return !(b<a);
if (a.p==b.p) return a.a<b.a;
for (int i=31;i>max(31-(a.p-b.p),0);i--) {
if ((1<<i)&a.a) return false;
}
unsigned int tmp = a.a << (a.p-b.p);
return tmp < b.a;
}
bigInt getWgt(int idx) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |