# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1009526 | salmon | City (JOI17_city) | C++14 | 0 ms | 0 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 "Device.h"
void InitDevice(){
}
int Answer(long long S, long long T){
long long int s1 = S % (1LL<<22);
long long int e1 = (S>>22);
e1 += s1;
long long int s2 = T % (1LL<<22);
long long int e2 = (T>>22);
e2 += s2;
if(s1 <= s2 && e2 <= e1){
return 1;
}
if(s2 <= s1 && e1 <= e2){
return 0;
}
return 2;
}