| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1128614 | PakinDioxide | Tracks in the Snow (BOI13_tracks) | C++17 | 210 ms | 428 KiB |
#include <bits/stdc++.h>
using namespace std;
int main() {
int f = 0, r = 0, n, m;
string s;
cin >> n >> m;
for (int i = 0; i < n; i++) {cin >> s; for (int j = 0; j < m; j++) {if (s[i] == 'R') r=1; else if (s[i] == 'F') f=1;}}
cout << f + r;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
