# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1080407 | thelegendary08 | 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)
{
//cout<<S<<' '<<T<<'\n';
ll szs = S / 262144;
ll szt = T / 262144;
ll cs = S % 262144;
ll ct = T % 262144;
//cout<<cs<<' '<<ct<<' '<<szs<<' '<<szt<<'\n';
if(cs + szs > ct && ct > cs)return 1;
if(ct + szt > cs && cs > ct)return 0;
return 2;
}