Submission #1120249

#TimeUsernameProblemLanguageResultExecution timeMemory
1120249vjudge1Tracks in the Snow (BOI13_tracks)C++17
2.19 / 100
177 ms508 KiB
// author - alimammadzade #include <bits/stdc++.h> using namespace std; signed main() { cin.tie(nullptr)->sync_with_stdio(false); // system("cls"), freopen("in.txt", "r", stdin); int n, m; bool f = 0, r = 0; cin >> n >> m; for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) { char c; cin >> c; f |= (c == 'F'); r |= (c == 'R'); } cout << f + r; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...