Submission #555271

#TimeUsernameProblemLanguageResultExecution timeMemory
555271status_codingTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
930 ms15912 KiB
#include <iostream> using namespace std; int n,m; bool hasF, hasR; int main() { cin>>n>>m; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) { char ch; cin>>ch; if(ch == 'F') hasF = true; if(ch == 'R') hasR = true; } cout<<(int)hasF + (int)hasR; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...