Submission #811673

#TimeUsernameProblemLanguageResultExecution timeMemory
811673devariaotaTracks in the Snow (BOI13_tracks)C++17
2.19 / 100
212 ms4320 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...