Submission #757441

#TimeUsernameProblemLanguageResultExecution timeMemory
757441drdilyorTracks in the Snow (BOI13_tracks)C++17
2.19 / 100
45 ms33768 KiB
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

signed main() {
    cin.tie(0)->sync_with_stdio(0);
    int n, m;
    cin >> n >> m;
    vector<string> mat(n);
    string res;
    for (string& s : mat) {
        cin >> s;
        res += s;
    }
    cout << (res.find('R') != string::npos) + (res.find('F') != string::npos) << '\n';
    return 0;
}

#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...