# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1080330 | kwongweng | City (JOI17_city) | C++17 | 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"
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef long long ll;
#define FOR(i,a,b) for(int i=a; i<b; i++)
#define ROF(i,a,b) for(int i=a; i>=b; i--)
#define pb push_back
const ll N = 250000;
void InitDevice()
{
}
int Answer(long long S, long long T)
{
//cout<<S/N<<" "<<S%N<<" "<<T/N<<" "<<T%N<<"\n";
if (S<T){
if (T/N < S/N + S%N) return 1;
return 2;
}
if (S/N < T/N + T%N) return 0;
return 2;
}