Submission #914073

#TimeUsernameProblemLanguageResultExecution timeMemory
914073lukas142434Tracks in the Snow (BOI13_tracks)C++17
2.19 / 100
552 ms16208 KiB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main()
{
    int n, m;
    cin >> n >> m;
    char c;
    bool b1 = false, b2 = false;
    for (int i = 0; i < n*m; i++) {
        cin >> c;
        if (c == 'R') b1 = true;
        else if (c == 'F') b2 = true;
    }
    if (!b1 && !b2) cout << 0;
    else if (b1 && b2) cout << 2;
    else cout << 1;
    
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...