# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
674974 | LucaIlie | Chessboard (IZhO18_chessboard) | C++17 | 755 ms | 5836 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int maxK = 1e5;
struct rectangle {
int l1, c1, l2, c2;
};
int l;
rectangle black[maxK];
int nxt( int x ) {
return (x / l + 1) * l;
}
int prv( int x ) {
return x / l * l - 1;
}
long long wbSq( int lin, int col, bool color ) {
if ( lin == 0 || col == 0 )
return 0;
return ((lin / 2) * ((col + 1) / 2) + ((lin + 1) / 2) * (col / 2) - ((lin + 1) / 2) * ((col + 1) / 2) - ((lin / 2) * (col / 2))) * (color == 0 ? 1 : -1);
}
long long getCost( rectangle r ) {
# | 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... |