Submission #770525

# Submission time Handle Problem Language Result Execution time Memory
770525 2023-07-01T11:56:57 Z ind1v Tracks in the Snow (BOI13_tracks) C++11
2.1875 / 100
181 ms 31676 KB
#include <bits/stdc++.h>

using namespace std;

const int H = 4005;

int h, w;
char d[H][H];

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> h >> w;
  bool fr = false, ff = false;
  for (int i = 1; i <= h; i++) {
    for (int j = 1; j <= w; j++) {
      cin >> d[i][j];
      fr |= (d[i][j] == 'R');
      ff |= (d[i][j] == 'F');
    }
  }
  cout << fr + ff;
  return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 2384 KB Output isn't correct
2 Incorrect 1 ms 340 KB Output isn't correct
3 Incorrect 1 ms 468 KB Output isn't correct
4 Incorrect 2 ms 2368 KB Output isn't correct
5 Incorrect 2 ms 1492 KB Output isn't correct
6 Incorrect 1 ms 340 KB Output isn't correct
7 Incorrect 1 ms 468 KB Output isn't correct
8 Incorrect 1 ms 464 KB Output isn't correct
9 Incorrect 1 ms 720 KB Output isn't correct
10 Incorrect 2 ms 1364 KB Output isn't correct
11 Incorrect 2 ms 1108 KB Output isn't correct
12 Incorrect 2 ms 1492 KB Output isn't correct
13 Incorrect 2 ms 1424 KB Output isn't correct
14 Incorrect 2 ms 1492 KB Output isn't correct
15 Incorrect 3 ms 2516 KB Output isn't correct
16 Incorrect 3 ms 2432 KB Output isn't correct
17 Incorrect 3 ms 2388 KB Output isn't correct
18 Incorrect 3 ms 2388 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 15316 KB Output isn't correct
2 Incorrect 17 ms 6648 KB Output isn't correct
3 Incorrect 181 ms 31552 KB Output isn't correct
4 Incorrect 45 ms 11360 KB Output isn't correct
5 Incorrect 87 ms 20864 KB Output isn't correct
6 Incorrect 157 ms 31676 KB Output isn't correct
7 Incorrect 6 ms 15956 KB Output isn't correct
8 Incorrect 6 ms 15316 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 6 ms 15700 KB Output isn't correct
12 Incorrect 1 ms 844 KB Output isn't correct
13 Incorrect 16 ms 6660 KB Output isn't correct
14 Incorrect 10 ms 4692 KB Output isn't correct
15 Incorrect 11 ms 5216 KB Output isn't correct
16 Incorrect 7 ms 2440 KB Output isn't correct
17 Incorrect 41 ms 12112 KB Output isn't correct
18 Incorrect 56 ms 12028 KB Output isn't correct
19 Incorrect 38 ms 11296 KB Output isn't correct
20 Incorrect 34 ms 10444 KB Output isn't correct
21 Incorrect 88 ms 21488 KB Output isn't correct
22 Incorrect 88 ms 20852 KB Output isn't correct
23 Incorrect 77 ms 17660 KB Output isn't correct
24 Incorrect 98 ms 21556 KB Output isn't correct
25 Incorrect 178 ms 31616 KB Output isn't correct
26 Correct 116 ms 25952 KB Output is correct
27 Incorrect 159 ms 31636 KB Output isn't correct
28 Incorrect 177 ms 31532 KB Output isn't correct
29 Incorrect 147 ms 31552 KB Output isn't correct
30 Incorrect 159 ms 30960 KB Output isn't correct
31 Incorrect 122 ms 23264 KB Output isn't correct
32 Incorrect 150 ms 31640 KB Output isn't correct