# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
766881 | 2023-06-26T08:32:24 Z | tamyte | Tracks in the Snow (BOI13_tracks) | C++14 | 168 ms | 31752 KB |
#include<bits/stdc++.h> using namespace std; void setIO(string name = "") { cin.tie(0)->sync_with_stdio(0); // see /general/fast-io if (name.size()) { freopen((name + ".in").c_str(), "r", stdin); // see /general/input-output freopen((name + ".out").c_str(), "w", stdout); } } void solve() { int n, m; cin >> n >> m; vector<vector<char>> arr(n, vector<char>(m)); bool fox = false, rabbit = false; for (int i = 0; i < n; ++i) { for (int j = 0; j < m; ++j) { cin >> arr[i][j]; fox |= (arr[i][j] == 'F'); rabbit |= (arr[i][j] == 'R'); } } cout << fox + rabbit << "\n"; } int main () { setIO(); int t = 1; // cin >> t; while (t--) { solve(); } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 724 KB | Output isn't correct |
2 | Incorrect | 1 ms | 212 KB | Output isn't correct |
3 | Incorrect | 1 ms | 212 KB | Output isn't correct |
4 | Incorrect | 2 ms | 596 KB | Output isn't correct |
5 | Incorrect | 1 ms | 496 KB | Output isn't correct |
6 | Incorrect | 1 ms | 212 KB | Output isn't correct |
7 | Incorrect | 1 ms | 212 KB | Output isn't correct |
8 | Incorrect | 1 ms | 340 KB | Output isn't correct |
9 | Incorrect | 1 ms | 340 KB | Output isn't correct |
10 | Incorrect | 1 ms | 336 KB | Output isn't correct |
11 | Incorrect | 1 ms | 340 KB | Output isn't correct |
12 | Incorrect | 2 ms | 468 KB | Output isn't correct |
13 | Incorrect | 1 ms | 468 KB | Output isn't correct |
14 | Incorrect | 1 ms | 468 KB | Output isn't correct |
15 | Incorrect | 3 ms | 724 KB | Output isn't correct |
16 | Incorrect | 3 ms | 716 KB | Output isn't correct |
17 | Incorrect | 3 ms | 724 KB | Output isn't correct |
18 | Incorrect | 2 ms | 528 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 468 KB | Output isn't correct |
2 | Incorrect | 19 ms | 3276 KB | Output isn't correct |
3 | Incorrect | 162 ms | 31752 KB | Output isn't correct |
4 | Incorrect | 36 ms | 7628 KB | Output isn't correct |
5 | Incorrect | 83 ms | 17896 KB | Output isn't correct |
6 | Incorrect | 151 ms | 31720 KB | Output isn't correct |
7 | Incorrect | 1 ms | 584 KB | Output isn't correct |
8 | Incorrect | 1 ms | 468 KB | Output isn't correct |
9 | Incorrect | 1 ms | 340 KB | Output isn't correct |
10 | Incorrect | 1 ms | 340 KB | Output isn't correct |
11 | Incorrect | 1 ms | 468 KB | Output isn't correct |
12 | Incorrect | 1 ms | 340 KB | Output isn't correct |
13 | Incorrect | 15 ms | 3416 KB | Output isn't correct |
14 | Incorrect | 9 ms | 2004 KB | Output isn't correct |
15 | Incorrect | 10 ms | 2212 KB | Output isn't correct |
16 | Incorrect | 7 ms | 1492 KB | Output isn't correct |
17 | Incorrect | 39 ms | 8316 KB | Output isn't correct |
18 | Incorrect | 37 ms | 8132 KB | Output isn't correct |
19 | Incorrect | 35 ms | 7608 KB | Output isn't correct |
20 | Incorrect | 33 ms | 7044 KB | Output isn't correct |
21 | Incorrect | 86 ms | 18620 KB | Output isn't correct |
22 | Incorrect | 93 ms | 17984 KB | Output isn't correct |
23 | Incorrect | 75 ms | 15532 KB | Output isn't correct |
24 | Incorrect | 85 ms | 18124 KB | Output isn't correct |
25 | Incorrect | 150 ms | 31716 KB | Output isn't correct |
26 | Correct | 117 ms | 24328 KB | Output is correct |
27 | Incorrect | 150 ms | 31720 KB | Output isn't correct |
28 | Incorrect | 151 ms | 31712 KB | Output isn't correct |
29 | Incorrect | 168 ms | 31716 KB | Output isn't correct |
30 | Incorrect | 151 ms | 31012 KB | Output isn't correct |
31 | Incorrect | 97 ms | 20432 KB | Output isn't correct |
32 | Incorrect | 149 ms | 31712 KB | Output isn't correct |