#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;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
4 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 |
2 ms |
468 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
340 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 |
0 ms |
212 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
212 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 |
2 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
340 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 |
5 ms |
556 KB |
Output isn't correct |
17 |
Incorrect |
4 ms |
468 KB |
Output isn't correct |
18 |
Incorrect |
2 ms |
440 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
2 |
Incorrect |
20 ms |
1092 KB |
Output isn't correct |
3 |
Incorrect |
174 ms |
3764 KB |
Output isn't correct |
4 |
Incorrect |
38 ms |
1108 KB |
Output isn't correct |
5 |
Incorrect |
82 ms |
3864 KB |
Output isn't correct |
6 |
Incorrect |
187 ms |
8152 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 |
336 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
19 ms |
1708 KB |
Output isn't correct |
14 |
Incorrect |
12 ms |
1108 KB |
Output isn't correct |
15 |
Incorrect |
16 ms |
1196 KB |
Output isn't correct |
16 |
Incorrect |
12 ms |
852 KB |
Output isn't correct |
17 |
Incorrect |
51 ms |
3156 KB |
Output isn't correct |
18 |
Incorrect |
47 ms |
2996 KB |
Output isn't correct |
19 |
Incorrect |
40 ms |
2612 KB |
Output isn't correct |
20 |
Incorrect |
37 ms |
1704 KB |
Output isn't correct |
21 |
Incorrect |
103 ms |
3768 KB |
Output isn't correct |
22 |
Incorrect |
86 ms |
4016 KB |
Output isn't correct |
23 |
Incorrect |
96 ms |
3164 KB |
Output isn't correct |
24 |
Incorrect |
106 ms |
3772 KB |
Output isn't correct |
25 |
Incorrect |
185 ms |
3564 KB |
Output isn't correct |
26 |
Correct |
114 ms |
8200 KB |
Output is correct |
27 |
Incorrect |
151 ms |
8048 KB |
Output isn't correct |
28 |
Incorrect |
189 ms |
8104 KB |
Output isn't correct |
29 |
Incorrect |
178 ms |
8068 KB |
Output isn't correct |
30 |
Incorrect |
162 ms |
10044 KB |
Output isn't correct |
31 |
Incorrect |
186 ms |
3792 KB |
Output isn't correct |
32 |
Incorrect |
164 ms |
7856 KB |
Output isn't correct |