제출 #1149868

#제출 시각아이디문제언어결과실행 시간메모리
1149868swayam78Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
506 ms412 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	
	int t;
	t = 1;
	
	while(t--){
      int h , w;
      cin >> h >> w;
       
	  vector<int> freq(2);
	  for(int i = 0 ; i<h; i++){
		for(int j = 0; j<w; j++){
         char ch;
		 cin >> ch;

		 if(ch == 'R'){
			freq[0] = 1;
		 }
		 else if(ch == 'F'){
			freq[1] = 1;
		 }
		 }
	  }

	  cout<<freq[0]+freq[1]<<endl;
	    
	  
	}

}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...