# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
9800 | hodduc | Phibonacci (kriii2_P) | C++98 | 0 ms | 1948 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<stdio.h>
#define rotR 0
#define rotC 1
#define negR 2
#define negC 3
int R, C;
int map[201][201];
int path[60002][3], PC;
void swap_two(int r1, int c1, int r2, int c2)
{
if(r1 == r2) {
// c1을 뒤집음
path[PC][0] = negC;
path[PC++][1] = c1;
// c2를 c1자리로 rot
path[PC][0] = rotR;
path[PC][1] = r1;
path[PC++][2] = c1 > c2 ? (c1 - c2) : (C - (c2 - c1));
// c1을 뒤집음
path[PC][0] = negC;
path[PC++][1] = c1;
// 반대로 rot
path[PC][0] = rotR;
path[PC][1] = r1;
path[PC++][2] = c1 > c2 ? (C - (c1 - c2)) : (c2 - c1);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |