| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 108109 | wilwxk | Tracks in the Snow (BOI13_tracks) | C++11 | 87 ms | 16136 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 MAXN=4e3+5;
int n, m, aa, bb;
int main() {
scanf("%d %d", &n, &m);
for(int i=1; i<=n; i++) {
char c[MAXN]; scanf(" %s", c);
for(int j=1; j<=m; j++) {
if(c[i]=='R') aa=1;
if(c[i]=='F') bb=1;
}
}
printf("%d\n", aa+bb);
}
Compilation message (stderr)
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
