#include <iostream>
using namespace std;
int n,m;
bool hasF, hasR;
int main()
{
cin>>n>>m;
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++)
{
char ch;
cin>>ch;
if(ch == 'F')
hasF = true;
if(ch == 'R')
hasR = true;
}
cout<<(int)hasF + (int)hasR;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
16 ms |
468 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
10 ms |
444 KB |
Output isn't correct |
5 |
Incorrect |
5 ms |
340 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
7 |
Incorrect |
1 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 |
5 ms |
340 KB |
Output isn't correct |
11 |
Incorrect |
3 ms |
312 KB |
Output isn't correct |
12 |
Incorrect |
7 ms |
384 KB |
Output isn't correct |
13 |
Incorrect |
5 ms |
340 KB |
Output isn't correct |
14 |
Incorrect |
5 ms |
340 KB |
Output isn't correct |
15 |
Incorrect |
16 ms |
436 KB |
Output isn't correct |
16 |
Incorrect |
15 ms |
532 KB |
Output isn't correct |
17 |
Incorrect |
15 ms |
468 KB |
Output isn't correct |
18 |
Incorrect |
9 ms |
340 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
340 KB |
Output isn't correct |
2 |
Incorrect |
90 ms |
1812 KB |
Output isn't correct |
3 |
Incorrect |
910 ms |
15876 KB |
Output isn't correct |
4 |
Incorrect |
213 ms |
3920 KB |
Output isn't correct |
5 |
Incorrect |
514 ms |
8964 KB |
Output isn't correct |
6 |
Incorrect |
911 ms |
15872 KB |
Output isn't correct |
7 |
Incorrect |
3 ms |
340 KB |
Output isn't correct |
8 |
Incorrect |
4 ms |
348 KB |
Output isn't correct |
9 |
Incorrect |
4 ms |
340 KB |
Output isn't correct |
10 |
Incorrect |
2 ms |
212 KB |
Output isn't correct |
11 |
Incorrect |
3 ms |
340 KB |
Output isn't correct |
12 |
Incorrect |
2 ms |
212 KB |
Output isn't correct |
13 |
Incorrect |
88 ms |
1800 KB |
Output isn't correct |
14 |
Incorrect |
53 ms |
1100 KB |
Output isn't correct |
15 |
Incorrect |
58 ms |
1160 KB |
Output isn't correct |
16 |
Incorrect |
38 ms |
788 KB |
Output isn't correct |
17 |
Incorrect |
224 ms |
4224 KB |
Output isn't correct |
18 |
Incorrect |
232 ms |
4104 KB |
Output isn't correct |
19 |
Incorrect |
209 ms |
3844 KB |
Output isn't correct |
20 |
Incorrect |
194 ms |
3596 KB |
Output isn't correct |
21 |
Incorrect |
522 ms |
9344 KB |
Output isn't correct |
22 |
Incorrect |
516 ms |
8976 KB |
Output isn't correct |
23 |
Incorrect |
447 ms |
7808 KB |
Output isn't correct |
24 |
Incorrect |
513 ms |
9092 KB |
Output isn't correct |
25 |
Incorrect |
930 ms |
15872 KB |
Output isn't correct |
26 |
Correct |
668 ms |
12160 KB |
Output is correct |
27 |
Incorrect |
879 ms |
15876 KB |
Output isn't correct |
28 |
Incorrect |
922 ms |
15872 KB |
Output isn't correct |
29 |
Incorrect |
897 ms |
15888 KB |
Output isn't correct |
30 |
Incorrect |
870 ms |
15492 KB |
Output isn't correct |
31 |
Incorrect |
627 ms |
10240 KB |
Output isn't correct |
32 |
Incorrect |
886 ms |
15912 KB |
Output isn't correct |