#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 |
6 ms |
340 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
276 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
328 KB |
Output isn't correct |
5 |
Incorrect |
2 ms |
340 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
316 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
328 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
384 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
356 KB |
Output isn't correct |
12 |
Incorrect |
3 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
2 ms |
400 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
15 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
16 |
Incorrect |
5 ms |
328 KB |
Output isn't correct |
17 |
Incorrect |
4 ms |
320 KB |
Output isn't correct |
18 |
Incorrect |
3 ms |
412 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
2 |
Incorrect |
27 ms |
412 KB |
Output isn't correct |
3 |
Incorrect |
189 ms |
428 KB |
Output isn't correct |
4 |
Incorrect |
42 ms |
432 KB |
Output isn't correct |
5 |
Incorrect |
89 ms |
424 KB |
Output isn't correct |
6 |
Incorrect |
202 ms |
15380 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 |
352 KB |
Output isn't correct |
11 |
Incorrect |
2 ms |
340 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
13 |
Incorrect |
23 ms |
424 KB |
Output isn't correct |
14 |
Incorrect |
15 ms |
444 KB |
Output isn't correct |
15 |
Incorrect |
12 ms |
396 KB |
Output isn't correct |
16 |
Incorrect |
12 ms |
412 KB |
Output isn't correct |
17 |
Incorrect |
56 ms |
432 KB |
Output isn't correct |
18 |
Incorrect |
48 ms |
428 KB |
Output isn't correct |
19 |
Incorrect |
45 ms |
452 KB |
Output isn't correct |
20 |
Incorrect |
40 ms |
428 KB |
Output isn't correct |
21 |
Incorrect |
121 ms |
424 KB |
Output isn't correct |
22 |
Incorrect |
79 ms |
436 KB |
Output isn't correct |
23 |
Incorrect |
121 ms |
428 KB |
Output isn't correct |
24 |
Incorrect |
105 ms |
392 KB |
Output isn't correct |
25 |
Incorrect |
184 ms |
352 KB |
Output isn't correct |
26 |
Correct |
124 ms |
12184 KB |
Output is correct |
27 |
Incorrect |
164 ms |
12520 KB |
Output isn't correct |
28 |
Incorrect |
182 ms |
9132 KB |
Output isn't correct |
29 |
Incorrect |
196 ms |
3440 KB |
Output isn't correct |
30 |
Incorrect |
172 ms |
7580 KB |
Output isn't correct |
31 |
Incorrect |
170 ms |
352 KB |
Output isn't correct |
32 |
Incorrect |
152 ms |
1428 KB |
Output isn't correct |