답안 #990579

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
990579 2024-05-30T16:27:36 Z Mazhavil Tracks in the Snow (BOI13_tracks) C++17
2.1875 / 100
820 ms 31828 KB
#include<bits/stdc++.h>
using namespace std;
int main(){
  int h,w;cin>>h>>w;
  char path[h][w];
  int cntr=0, cntf=0;
  for(int i=0;i<h;i++){
    for(int j=0;j<w;j++){
      cin>>path[i][j];
      if(path[i][j]=='R')cntr++;
      if(path[i][j]=='F')cntf++;
    }
  }
  if(cntr>0 && cntf>0)cout<<2<<endl;
  else if(cntr + cntf>0)cout<<1<<endl;
  else cout<<0<<endl;
  return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 8 ms 860 KB Output isn't correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 5 ms 732 KB Output isn't correct
5 Incorrect 3 ms 348 KB Output isn't correct
6 Incorrect 0 ms 348 KB Output isn't correct
7 Incorrect 0 ms 348 KB Output isn't correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 2 ms 348 KB Output isn't correct
11 Incorrect 1 ms 348 KB Output isn't correct
12 Incorrect 3 ms 348 KB Output isn't correct
13 Incorrect 3 ms 348 KB Output isn't correct
14 Incorrect 3 ms 348 KB Output isn't correct
15 Incorrect 8 ms 856 KB Output isn't correct
16 Incorrect 8 ms 856 KB Output isn't correct
17 Incorrect 10 ms 900 KB Output isn't correct
18 Incorrect 5 ms 604 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 344 KB Output isn't correct
2 Incorrect 48 ms 3412 KB Output isn't correct
3 Incorrect 472 ms 31540 KB Output isn't correct
4 Incorrect 107 ms 7748 KB Output isn't correct
5 Incorrect 255 ms 18000 KB Output isn't correct
6 Incorrect 487 ms 31824 KB Output isn't correct
7 Incorrect 2 ms 348 KB Output isn't correct
8 Incorrect 2 ms 348 KB Output isn't correct
9 Incorrect 2 ms 348 KB Output isn't correct
10 Incorrect 1 ms 348 KB Output isn't correct
11 Incorrect 2 ms 348 KB Output isn't correct
12 Incorrect 1 ms 448 KB Output isn't correct
13 Incorrect 57 ms 3340 KB Output isn't correct
14 Incorrect 29 ms 2132 KB Output isn't correct
15 Incorrect 36 ms 2640 KB Output isn't correct
16 Incorrect 21 ms 1624 KB Output isn't correct
17 Incorrect 126 ms 8276 KB Output isn't correct
18 Incorrect 123 ms 8016 KB Output isn't correct
19 Incorrect 122 ms 7680 KB Output isn't correct
20 Incorrect 105 ms 6996 KB Output isn't correct
21 Incorrect 271 ms 18592 KB Output isn't correct
22 Incorrect 261 ms 18004 KB Output isn't correct
23 Incorrect 246 ms 15444 KB Output isn't correct
24 Incorrect 264 ms 18000 KB Output isn't correct
25 Incorrect 471 ms 31828 KB Output isn't correct
26 Correct 347 ms 24148 KB Output is correct
27 Incorrect 480 ms 31828 KB Output isn't correct
28 Incorrect 820 ms 31532 KB Output isn't correct
29 Incorrect 471 ms 31572 KB Output isn't correct
30 Incorrect 466 ms 30808 KB Output isn't correct
31 Incorrect 333 ms 20560 KB Output isn't correct
32 Incorrect 456 ms 31572 KB Output isn't correct