Submission #418050

# Submission time Handle Problem Language Result Execution time Memory
418050 2021-06-05T00:54:58 Z Mamnoon_Siam Navigation 2 (JOI21_navigation2) C++17
0 / 100
21 ms 464 KB
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;

using ii = pair<int, int>;
using ll = long long;
using vll = vector<ll>;
using vi = vector<int>;
#define fi first
#define se second
#define all(v) begin(v), end(v)
#define sz(v) (int)(v.size())

namespace {

} // namespace

void Anna(int N, int K, std::vector<int> R, std::vector<int> C) {
  for(int r = 0; r < N; ++r) {
    for(int c = 0; c < N; ++c) {
      vi action(7, 4);
      for(int i = 0; i < K; ++i) {
        if(C[i] > c) action[i] = 0;
        if(C[i] < c) action[i] = 1;
        if(R[i] > r) action[i] = 2;
        if(R[i] < r) action[i] = 3;
      }
      int value = 0;
      for(int i = K-1; i >= 0; --i) {
        value = value * 5 + action[i];
      }
      SetFlag(r, c, value);
    }
  }
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;

using ii = pair<int, int>;
using ll = long long;
using vll = vector<ll>;
using vi = vector<int>;
#define fi first
#define se second
#define all(v) begin(v), end(v)
#define sz(v) (int)(v.size())

namespace {

} // namespace

vi Bruno(int K, vi value) {
  int number = value[4];
  vi ret(K);
  for(int i = 0; i < K; ++i) {
    ret[i] = number % 5;
    number /= 5;
  } 
  return ret;
}
# Verdict Execution time Memory Grader output
1 Partially correct 13 ms 384 KB Partially correct
2 Partially correct 12 ms 384 KB Partially correct
3 Partially correct 13 ms 384 KB Partially correct
4 Partially correct 11 ms 388 KB Partially correct
5 Partially correct 17 ms 384 KB Partially correct
6 Partially correct 13 ms 384 KB Partially correct
7 Partially correct 16 ms 388 KB Partially correct
8 Partially correct 13 ms 388 KB Partially correct
9 Partially correct 17 ms 384 KB Partially correct
10 Partially correct 16 ms 384 KB Partially correct
11 Partially correct 17 ms 384 KB Partially correct
12 Partially correct 13 ms 384 KB Partially correct
13 Partially correct 13 ms 388 KB Partially correct
14 Partially correct 14 ms 384 KB Partially correct
15 Partially correct 14 ms 384 KB Partially correct
16 Partially correct 15 ms 384 KB Partially correct
17 Partially correct 15 ms 384 KB Partially correct
18 Partially correct 12 ms 384 KB Partially correct
19 Partially correct 12 ms 384 KB Partially correct
20 Partially correct 12 ms 384 KB Partially correct
21 Partially correct 13 ms 464 KB Partially correct
22 Partially correct 14 ms 384 KB Partially correct
23 Partially correct 16 ms 464 KB Partially correct
24 Partially correct 16 ms 388 KB Partially correct
25 Partially correct 13 ms 384 KB Partially correct
26 Partially correct 14 ms 384 KB Partially correct
27 Partially correct 12 ms 388 KB Partially correct
28 Partially correct 17 ms 384 KB Partially correct
29 Partially correct 15 ms 384 KB Partially correct
30 Partially correct 13 ms 384 KB Partially correct
31 Partially correct 17 ms 388 KB Partially correct
32 Partially correct 14 ms 388 KB Partially correct
33 Partially correct 13 ms 384 KB Partially correct
34 Partially correct 11 ms 464 KB Partially correct
35 Partially correct 13 ms 384 KB Partially correct
36 Partially correct 14 ms 388 KB Partially correct
37 Partially correct 15 ms 388 KB Partially correct
38 Partially correct 17 ms 384 KB Partially correct
39 Partially correct 21 ms 384 KB Partially correct
40 Partially correct 15 ms 384 KB Partially correct
41 Partially correct 14 ms 384 KB Partially correct
42 Partially correct 16 ms 384 KB Partially correct
43 Partially correct 19 ms 384 KB Partially correct
44 Partially correct 17 ms 384 KB Partially correct
45 Partially correct 19 ms 384 KB Partially correct
46 Partially correct 16 ms 464 KB Partially correct
47 Partially correct 16 ms 384 KB Partially correct
48 Partially correct 16 ms 384 KB Partially correct
49 Partially correct 15 ms 384 KB Partially correct
50 Partially correct 17 ms 384 KB Partially correct
51 Partially correct 18 ms 384 KB Partially correct
52 Partially correct 15 ms 384 KB Partially correct
53 Partially correct 20 ms 384 KB Partially correct
54 Partially correct 17 ms 384 KB Partially correct
55 Partially correct 15 ms 384 KB Partially correct
56 Incorrect 1 ms 196 KB Wrong Answer [2]
57 Halted 0 ms 0 KB -