제출 #952797

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

int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);

	int n,m;
	cin >> n >> m;
	bool rab=false,fox=false;
	char zn;
	for (int i = 1; i<=n; i++){
		for (int j = 1; j<=m; j++){
			cin >> zn;
			if (zn=='R')rab=true;
			if (zn=='F')fox=true;
		}
	}
	int odp=0;
	if (rab)odp++;
	if (fox)odp++;
	cout << odp << '\n';
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...