Submission #1149868

#TimeUsernameProblemLanguageResultExecution timeMemory
1149868swayam78Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
506 ms412 KiB
#include <bits/stdc++.h> using namespace std; int main() { int t; t = 1; while(t--){ int h , w; cin >> h >> w; vector<int> freq(2); for(int i = 0 ; i<h; i++){ for(int j = 0; j<w; j++){ char ch; cin >> ch; if(ch == 'R'){ freq[0] = 1; } else if(ch == 'F'){ freq[1] = 1; } } } cout<<freq[0]+freq[1]<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...