Submission #811185

#TimeUsernameProblemLanguageResultExecution timeMemory
811185yusuf12360Tracks in the Snow (BOI13_tracks)C++14
2.19 / 100
176 ms412 KiB
#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;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...