# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
467339 | TlenekWodoru | Game (eJOI20_game) | C++14 | 1 ms | 332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int tab[100][100][5];
bool zaj[100][100];
int h=0;
void DFS(int y, int x)
{
zaj[y][x]=1;
if(tab[y][x][1]==0&&zaj[y-1][x]==0)
{
DFS(y-1,x);
}
if(tab[y][x][2]==0&&zaj[y][x+1]==0)
{
DFS(y,x+1);
}
if(tab[y][x][3]==0&&zaj[y+1][x]==0)
{
DFS(y+1,x);
}
if(tab[y][x][4]==0&&zaj[y][x-1]==0)
{
DFS(y,x-1);
}
h++;
}
int main()
{ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int n,m;cin>>n>>m;
for(int i=0;i<=n+1;i++)
컴파일 시 표준 에러 (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... |