Submission #1128614

#TimeUsernameProblemLanguageResultExecution timeMemory
1128614PakinDioxideTracks in the Snow (BOI13_tracks)C++17
2.19 / 100
210 ms428 KiB
#include <bits/stdc++.h> using namespace std; int main() { int f = 0, r = 0, n, m; string s; cin >> n >> m; for (int i = 0; i < n; i++) {cin >> s; for (int j = 0; j < m; j++) {if (s[i] == 'R') r=1; else if (s[i] == 'F') f=1;}} cout << f + r; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...