#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int h, w; cin >> h >> w;
bool r, f; r=0; f=0;
while(h--) {
for(int i=0; i<w; i++) {char c; cin >> c; if(c=='R') r=1; if(c=='F') f=1;}
}
cout << r+f << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
468 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
316 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
460 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
6 |
Incorrect |
0 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 |
212 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
360 KB |
Output isn't correct |
12 |
Incorrect |
2 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
15 |
Incorrect |
4 ms |
468 KB |
Output isn't correct |
16 |
Incorrect |
4 ms |
460 KB |
Output isn't correct |
17 |
Incorrect |
3 ms |
468 KB |
Output isn't correct |
18 |
Incorrect |
2 ms |
468 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
2 |
Incorrect |
19 ms |
728 KB |
Output isn't correct |
3 |
Incorrect |
176 ms |
1676 KB |
Output isn't correct |
4 |
Incorrect |
38 ms |
716 KB |
Output isn't correct |
5 |
Incorrect |
83 ms |
1248 KB |
Output isn't correct |
6 |
Incorrect |
202 ms |
1968 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
340 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 |
336 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
20 ms |
608 KB |
Output isn't correct |
14 |
Incorrect |
11 ms |
596 KB |
Output isn't correct |
15 |
Incorrect |
12 ms |
700 KB |
Output isn't correct |
16 |
Incorrect |
9 ms |
468 KB |
Output isn't correct |
17 |
Incorrect |
50 ms |
584 KB |
Output isn't correct |
18 |
Incorrect |
50 ms |
732 KB |
Output isn't correct |
19 |
Incorrect |
38 ms |
600 KB |
Output isn't correct |
20 |
Incorrect |
40 ms |
588 KB |
Output isn't correct |
21 |
Incorrect |
100 ms |
1112 KB |
Output isn't correct |
22 |
Incorrect |
80 ms |
1164 KB |
Output isn't correct |
23 |
Incorrect |
93 ms |
608 KB |
Output isn't correct |
24 |
Incorrect |
106 ms |
1140 KB |
Output isn't correct |
25 |
Incorrect |
177 ms |
1268 KB |
Output isn't correct |
26 |
Correct |
139 ms |
1700 KB |
Output is correct |
27 |
Incorrect |
159 ms |
1984 KB |
Output isn't correct |
28 |
Incorrect |
179 ms |
1940 KB |
Output isn't correct |
29 |
Incorrect |
176 ms |
1960 KB |
Output isn't correct |
30 |
Incorrect |
156 ms |
1612 KB |
Output isn't correct |
31 |
Incorrect |
172 ms |
632 KB |
Output isn't correct |
32 |
Incorrect |
168 ms |
1852 KB |
Output isn't correct |