#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);
int n, m;
bool f = false, r = false;
cin >> n >> m;
string s[n];
for (int i = 0; i < n; ++i) {
cin >> s[i];
for (auto j : s[i]) {
f |= j == 'F';
r |= j == 'R';
}
}
cout << 0 + f + r;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
724 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
596 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
328 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
15 |
Incorrect |
2 ms |
840 KB |
Output isn't correct |
16 |
Incorrect |
1 ms |
724 KB |
Output isn't correct |
17 |
Incorrect |
1 ms |
716 KB |
Output isn't correct |
18 |
Incorrect |
1 ms |
596 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
456 KB |
Output isn't correct |
2 |
Incorrect |
5 ms |
3412 KB |
Output isn't correct |
3 |
Incorrect |
54 ms |
25332 KB |
Output isn't correct |
4 |
Incorrect |
11 ms |
7956 KB |
Output isn't correct |
5 |
Incorrect |
29 ms |
18968 KB |
Output isn't correct |
6 |
Incorrect |
54 ms |
25396 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
496 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
388 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
13 |
Incorrect |
5 ms |
3472 KB |
Output isn't correct |
14 |
Incorrect |
4 ms |
2132 KB |
Output isn't correct |
15 |
Incorrect |
4 ms |
2256 KB |
Output isn't correct |
16 |
Incorrect |
2 ms |
1620 KB |
Output isn't correct |
17 |
Incorrect |
13 ms |
8520 KB |
Output isn't correct |
18 |
Incorrect |
16 ms |
8560 KB |
Output isn't correct |
19 |
Incorrect |
13 ms |
7920 KB |
Output isn't correct |
20 |
Incorrect |
11 ms |
7348 KB |
Output isn't correct |
21 |
Incorrect |
29 ms |
19556 KB |
Output isn't correct |
22 |
Incorrect |
30 ms |
18880 KB |
Output isn't correct |
23 |
Incorrect |
23 ms |
16200 KB |
Output isn't correct |
24 |
Incorrect |
31 ms |
19020 KB |
Output isn't correct |
25 |
Incorrect |
61 ms |
25292 KB |
Output isn't correct |
26 |
Correct |
43 ms |
25668 KB |
Output is correct |
27 |
Incorrect |
54 ms |
25464 KB |
Output isn't correct |
28 |
Incorrect |
51 ms |
25288 KB |
Output isn't correct |
29 |
Incorrect |
52 ms |
25312 KB |
Output isn't correct |
30 |
Incorrect |
53 ms |
25012 KB |
Output isn't correct |
31 |
Incorrect |
32 ms |
20780 KB |
Output isn't correct |
32 |
Incorrect |
56 ms |
25328 KB |
Output isn't correct |