#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
int main(){
ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
int h,w;
cin>>h>>w;
string s[h+5];
int f=0,r=0;
for(int i=0;i<h;i++){
cin>>s[i];
for(int j=0;j<w;j++){
if(s[i][j]=='R'){
r=1;
}
if(s[i][j]=='F'){
f=1;
}
}
}
cout<<r+f;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
724 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
592 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 |
212 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
328 KB |
Output isn't correct |
9 |
Incorrect |
0 ms |
340 KB |
Output isn't correct |
10 |
Incorrect |
2 ms |
340 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
12 |
Incorrect |
2 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 |
712 KB |
Output isn't correct |
16 |
Incorrect |
2 ms |
720 KB |
Output isn't correct |
17 |
Incorrect |
2 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 |
468 KB |
Output isn't correct |
2 |
Incorrect |
8 ms |
3460 KB |
Output isn't correct |
3 |
Incorrect |
59 ms |
33688 KB |
Output isn't correct |
4 |
Incorrect |
13 ms |
7904 KB |
Output isn't correct |
5 |
Incorrect |
24 ms |
18800 KB |
Output isn't correct |
6 |
Incorrect |
64 ms |
33640 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
468 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
452 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 |
468 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
8 ms |
3444 KB |
Output isn't correct |
14 |
Incorrect |
5 ms |
2132 KB |
Output isn't correct |
15 |
Incorrect |
4 ms |
2260 KB |
Output isn't correct |
16 |
Incorrect |
4 ms |
1620 KB |
Output isn't correct |
17 |
Incorrect |
19 ms |
8556 KB |
Output isn't correct |
18 |
Incorrect |
17 ms |
8380 KB |
Output isn't correct |
19 |
Incorrect |
13 ms |
7888 KB |
Output isn't correct |
20 |
Incorrect |
14 ms |
7276 KB |
Output isn't correct |
21 |
Incorrect |
37 ms |
19444 KB |
Output isn't correct |
22 |
Incorrect |
25 ms |
18896 KB |
Output isn't correct |
23 |
Incorrect |
35 ms |
16236 KB |
Output isn't correct |
24 |
Incorrect |
37 ms |
19040 KB |
Output isn't correct |
25 |
Incorrect |
59 ms |
33648 KB |
Output isn't correct |
26 |
Correct |
33 ms |
25764 KB |
Output is correct |
27 |
Incorrect |
44 ms |
33600 KB |
Output isn't correct |
28 |
Incorrect |
64 ms |
33740 KB |
Output isn't correct |
29 |
Incorrect |
71 ms |
33612 KB |
Output isn't correct |
30 |
Incorrect |
55 ms |
32948 KB |
Output isn't correct |
31 |
Incorrect |
72 ms |
21468 KB |
Output isn't correct |
32 |
Incorrect |
51 ms |
33736 KB |
Output isn't correct |