Submission #672527

#TimeUsernameProblemLanguageResultExecution timeMemory
672527aminTracks in the Snow (BOI13_tracks)C++14
2.19 / 100
246 ms15956 KiB
#include<bits/stdc++.h> using namespace std; int main() { //setIO(); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); long n,m; cin>>n>>m; long ans=0; long sum=0; char a[n][m]; for(long i=0;i<n;i++) { for(long y=0;y<m;y++) { cin>>a[i][y]; if(a[i][y]=='R') { ans=1; }else if(a[i][y]=='F') { sum=1; } } } cout<<sum+ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...