#include <bits/stdc++.h>
using namespace std;
using ll = long long;
signed main() {
cin.tie(0)->sync_with_stdio(0);
int n, m;
cin >> n >> m;
vector<string> mat(n);
string res;
for (string& s : mat) {
cin >> s;
res += s;
}
cout << (res.find('R') != string::npos) + (res.find('F') != string::npos) << '\n';
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 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 |
1 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 |
0 ms |
212 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
340 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 |
1 ms |
724 KB |
Output isn't correct |
16 |
Incorrect |
1 ms |
724 KB |
Output isn't correct |
17 |
Incorrect |
1 ms |
724 KB |
Output isn't correct |
18 |
Incorrect |
1 ms |
648 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
2 |
Incorrect |
7 ms |
4224 KB |
Output isn't correct |
3 |
Incorrect |
37 ms |
33692 KB |
Output isn't correct |
4 |
Incorrect |
10 ms |
7964 KB |
Output isn't correct |
5 |
Incorrect |
28 ms |
19088 KB |
Output isn't correct |
6 |
Incorrect |
35 ms |
33736 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
340 KB |
Output isn't correct |
10 |
Incorrect |
0 ms |
340 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
4 ms |
4228 KB |
Output isn't correct |
14 |
Incorrect |
2 ms |
2156 KB |
Output isn't correct |
15 |
Incorrect |
2 ms |
2276 KB |
Output isn't correct |
16 |
Incorrect |
2 ms |
1652 KB |
Output isn't correct |
17 |
Incorrect |
9 ms |
8592 KB |
Output isn't correct |
18 |
Incorrect |
9 ms |
8480 KB |
Output isn't correct |
19 |
Incorrect |
8 ms |
7992 KB |
Output isn't correct |
20 |
Incorrect |
10 ms |
7316 KB |
Output isn't correct |
21 |
Incorrect |
20 ms |
19496 KB |
Output isn't correct |
22 |
Incorrect |
21 ms |
19040 KB |
Output isn't correct |
23 |
Incorrect |
19 ms |
19632 KB |
Output isn't correct |
24 |
Incorrect |
20 ms |
19172 KB |
Output isn't correct |
25 |
Incorrect |
33 ms |
33696 KB |
Output isn't correct |
26 |
Correct |
38 ms |
25744 KB |
Output is correct |
27 |
Incorrect |
40 ms |
33720 KB |
Output isn't correct |
28 |
Incorrect |
35 ms |
33712 KB |
Output isn't correct |
29 |
Incorrect |
45 ms |
33684 KB |
Output isn't correct |
30 |
Incorrect |
35 ms |
33096 KB |
Output isn't correct |
31 |
Incorrect |
26 ms |
21496 KB |
Output isn't correct |
32 |
Incorrect |
37 ms |
33768 KB |
Output isn't correct |