# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
976481 | vjudge1 | Awesome Arrowland Adventure (eJOI19_adventure) | C++17 | 0 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
using namespace std;
int n, m;
string s[500];
bool visited[500][500];
int mvr[4] = {-1, 0, 1, 0};
int mvc[4] = {0, 1, 0, -1};
bool valid(int i, int j) {
return i >= 0 && j >= 0 && i < n && j < n;
}
int bfs(int i, int j, int cnt) {
if (visited[i][j]) return -1;
}
int main() {
cin >> n >> m;
for (int i = 0; i < n; i++) {
cin >> s[i];
}
if (n == 1) {
int ans = 0;
for (int i = 1; i < n - 1; i++) {
switch(s[0][i]) {
case 'E': break;
case 'N': ans++; break;
case 'W': ans+=2; break;
case 'S': ans+=3; break;
case 'X': cout << -1; return 0;
}
}
}
}
컴파일 시 표준 에러 (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... |