#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 |
232 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
3 ms |
328 KB |
Output isn't correct |
5 |
Incorrect |
2 ms |
212 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 |
0 ms |
212 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
12 |
Incorrect |
2 ms |
212 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
232 KB |
Output isn't correct |
15 |
Incorrect |
4 ms |
212 KB |
Output isn't correct |
16 |
Incorrect |
4 ms |
212 KB |
Output isn't correct |
17 |
Incorrect |
3 ms |
212 KB |
Output isn't correct |
18 |
Incorrect |
2 ms |
216 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
216 KB |
Output isn't correct |
2 |
Incorrect |
20 ms |
320 KB |
Output isn't correct |
3 |
Incorrect |
195 ms |
3688 KB |
Output isn't correct |
4 |
Incorrect |
40 ms |
300 KB |
Output isn't correct |
5 |
Incorrect |
78 ms |
552 KB |
Output isn't correct |
6 |
Incorrect |
212 ms |
4320 KB |
Output isn't correct |
7 |
Incorrect |
2 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 |
212 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
13 |
Incorrect |
19 ms |
896 KB |
Output isn't correct |
14 |
Incorrect |
13 ms |
388 KB |
Output isn't correct |
15 |
Incorrect |
12 ms |
468 KB |
Output isn't correct |
16 |
Incorrect |
12 ms |
324 KB |
Output isn't correct |
17 |
Incorrect |
47 ms |
424 KB |
Output isn't correct |
18 |
Incorrect |
44 ms |
352 KB |
Output isn't correct |
19 |
Incorrect |
39 ms |
400 KB |
Output isn't correct |
20 |
Incorrect |
37 ms |
356 KB |
Output isn't correct |
21 |
Incorrect |
97 ms |
556 KB |
Output isn't correct |
22 |
Incorrect |
91 ms |
552 KB |
Output isn't correct |
23 |
Incorrect |
107 ms |
428 KB |
Output isn't correct |
24 |
Incorrect |
102 ms |
500 KB |
Output isn't correct |
25 |
Incorrect |
205 ms |
2208 KB |
Output isn't correct |
26 |
Correct |
121 ms |
2400 KB |
Output is correct |
27 |
Incorrect |
169 ms |
3808 KB |
Output isn't correct |
28 |
Incorrect |
181 ms |
3952 KB |
Output isn't correct |
29 |
Incorrect |
185 ms |
2308 KB |
Output isn't correct |
30 |
Incorrect |
172 ms |
4304 KB |
Output isn't correct |
31 |
Incorrect |
168 ms |
476 KB |
Output isn't correct |
32 |
Incorrect |
163 ms |
3576 KB |
Output isn't correct |