Submission #378174

#TimeUsernameProblemLanguageResultExecution timeMemory
378174penguin133Tracks in the Snow (BOI13_tracks)C++14
2.19 / 100
978 ms10348 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int h,w,cnt = 0, cnt2 =0 ; cin >> h >> w; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ char a; cin >> a; if(a == 'R')cnt = max(1, cnt); if(a == 'F')cnt2 = max(1, cnt2); } } cout << cnt + cnt2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...