# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1165703 | nguyn | Dango Maker (JOI18_dango_maker) | C++20 | 168 ms | 9308 KiB |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define F first
#define S second
#define pb push_back
#define pii pair<int,int>
const int N = 2e5 + 5;
int f[3005][3], n, m;
char a[3005][3005];
bool horizontal(int i, int j) {
if (j <= 2) return 0;
if (a[i][j] == 'W' && a[i][j - 1] == 'G' && a[i][j - 2] == 'R') {
return 1;
}
return 0;
}
bool vertical(int i, int j) {
if (i <= 2) return 0;
if (a[i][j] == 'W' && a[i - 1][j] == 'G' && a[i - 2][j] == 'R') {
return 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... |