# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
40565 | Just_Solve_The_Problem | Chessboard (IZhO18_chessboard) | C++11 | 1409 ms | 3820 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 <bits/stdc++.h>
using namespace std;
#define ll long long
#define whatis(x) cout << #x << " is -> " << x << endl;
const ll linf = (ll)1e18 + 7;
const ll N = (ll)1e5 + 7;
ll x1[N], YY[N], x2[N], y2[N];
ll n;
ll k;
ll ans = linf;
inline ll gety(ll y,ll len){
if(y <= 0) return 0;
ll res = (y / len) / 2 * len;
if((y / len) & 1) res += y % len + 1;
return res;
}
inline ll getx(ll x,ll len){
if(x <= 0) return 0;
ll res = (x / len) / 2 * len;
if((x / len) & 1) res += x % len + 1;
return res;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |