Submission #130274

# Submission time Handle Problem Language Result Execution time Memory
130274 2019-07-14T14:33:56 Z Talant Mechanical Doll (IOI18_doll) C++17
0 / 100
55 ms 5392 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);
                  for (int i = 2; i < n; i ++)
                        x.pb(-1 * (i - 1));

                  for (int i = 1; i < n - 1; i ++)
                        y.pb(-(i + 1));

                  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 1 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 55 ms 5392 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 55 ms 5392 KB over 20000000 inversions
3 Halted 0 ms 0 KB -