# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
492362 | Rainbowbunny | Chessboard (IZhO18_chessboard) | C++17 | 472 ms | 4296 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
int n, k;
int xl[MAXN], xr[MAXN], yl[MAXN], yr[MAXN];
pair <int, int> Get(int p, int id)
{
if(p < 0)
{
return make_pair(0, 0);
}
int seg = p / id + 1;
int cw = (seg + 1) / 2, cb = seg / 2;
if(cw == cb)
{
return make_pair(cw * id, (cb - 1) * id + p % id + 1);
}
else
{
return make_pair((cw - 1) * id + p % id + 1, cb * id);
}
}
long long Solve(int id)
{
long long tmp = 1ll * (n / id) * (n / id) / 2;
long long curans = tmp * id * id;
# | 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... |