Submission #1094118

#TimeUsernameProblemLanguageResultExecution timeMemory
1094118MattNattFeczanTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
252 ms15960 KiB
#include<bits/stdc++.h>
using namespace std;

int main(){
  int n,m;
  cin>>n>>m;
  bool r=0, f=0;
  for(int i=0;i<n;i++){
    string s;
    cin>>s;
    for(auto& elm : s){
      if(elm == 'R')
        r = true;
      else if(elm == 'F')
        f = true;
    }
  }
  int w = r+f;
  cout<<w;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...