Submission #1261193

#TimeUsernameProblemLanguageResultExecution timeMemory
1261193sohamsen15Tracks in the Snow (BOI13_tracks)C++20
2.19 / 100
49 ms476 KiB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    int m, n; cin >> m >> n;
    bool a = false, b = false;
    for (int i = 0; i < m; i++) {
        string s; cin >> s;
        for (char c: s) {
            if (c == 'R') a = true;
            else if (c == 'F') b = true;
        }
    }
    cout << a + b;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...