# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
926424 | AlphaMale06 | Chessboard (IZhO18_chessboard) | C++14 | 674 ms | 5716 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define int long long
struct rect{
int x1, y1, x2, y2;
};
int d;
int get(int x, int y){
if(x<=0 || y<=0)return 0;
int x1=x/d;
int y1=y/d;
int ret=0;
if(x1!=0 && y1!=0){
if(x1&y1&1)ret+=d*d;
}
int rx=x-x1*d;
int ry=y-y1*d;
if(rx==0 && ry==0)return ret;
if(y1&1){
if(x1&1)ret-=d*rx;
else ret+=d*rx;
}
if(x1&1){
# | 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... |