Submission #415649

#TimeUsernameProblemLanguageResultExecution timeMemory
415649duyanh1704Tracks in the Snow (BOI13_tracks)C++14
2.19 / 100
339 ms16060 KiB
#include <bits/stdc++.h>
using namespace std;

int n, m, f, r;

int main(){
    ios::sync_with_stdio(0); cin.tie(0);
    //freopen("test.inp", "r", stdin);
    //freopen("test.out", "w", stdout);
    cin >> n >> m;
    for (int i = 1; i <= n; ++i)
        for (int j = 1; j <= m; ++j){
            char t; cin >> t;
            if (t == 'F') f = 1;
            if (t == 'R') r = 1;
        }
    cout << f + r;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...