# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
445648 | aris12345678 | Awesome Arrowland Adventure (eJOI19_adventure) | C++14 | 1 ms | 300 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;
const int mxN = 505;
char str[mxN][mxN];
int main() {
int n, m;
scanf("%d %d", &n, &m);
int ok = 0;
for(int i = 0; i < n; i++) {
for(int j = 0; j < m; j++) {
scanf("%c", &str[i][j]);
if(str[i][j] == 'X')
ok++;
}
}
if(ok == 1)
printf("0\n");
else
printf("-1\n");
return 0;
}
Compilation message (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... |