Submission #130273

# Submission time Handle Problem Language Result Execution time Memory
130273 2019-07-14T14:28:25 Z Talant Mechanical Doll (IOI18_doll) C++17
0 / 100
46 ms 5420 KB
#include "doll.h"
#include <bits/stdc++.h>

#define sc second
#define fr first
#define pb push_back
#define mk make_pair

using namespace std;

const int NN = (1e6 + 5);
const int inf = (1e9 + 7);

int n;
int a[NN];
vector <int> c,x,y;

void create_circuit(int M, vector<int> A) {
      n = A.size();
      for (int i = 0; i < n; i ++) a[i + 1] = A[i];

      if (M == 1) {
            c.pb(1);
            if (n == 1) {
                  c.pb(0);
            }
            else {
                  c.pb(-1);
                  x.pb(1);
                  y.pb(-2);
                  for (int i = 2; i < n; i ++) {
                        x.pb(-1 * (i - 1));
                        y.pb(-1 * (i + 1));
                  }
                  x.pb(-n);
                  y.pb(0);
            }
            answer(c,x,y);
      }
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Wrong Answer: answered not exactly once
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Wrong Answer: answered not exactly once
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Wrong Answer: answered not exactly once
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 204 KB Wrong Answer: answered not exactly once
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 46 ms 5420 KB over 20000000 inversions
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Incorrect 46 ms 5420 KB over 20000000 inversions
3 Halted 0 ms 0 KB -