# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
45426 | choikiwon | Young Zebra (KRIII5_YZ) | C++17 | 1081 ms | 128632 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};
int N, M;
int G[402][402], chk[402][402], sz[1000010];
bool vis[402][402][802];
struct Info {
int r, c, x;
};
int main() {
scanf("%d %d", &N, &M);
for(int i = 0; i < N; i++) {
scanf("\n");
for(int j = 0; j < M; j++) {
scanf("%c", &G[i][j]);
}
}
memset(chk, -1, sizeof(chk));
memset(vis, 0, sizeof(vis));
int ccnt = 0;
for(int i = 0; i < N; i++) {
for(int j = 0; j < M; j++) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |