Submission #139452

# Submission time Handle Problem Language Result Execution time Memory
139452 2019-07-31T18:20:30 Z reda Mechanical Doll (IOI18_doll) C++14
2 / 100
31 ms 2216 KB
#include<bits/stdc++.h>
#include "doll.h"
using namespace std ;
#define  pb  push_back
#define  ll long long
#define  ld  long  double
#define  mp make_pair
#define  MOD 1000000007
#define endl '\n'
#pragma GCC optimize ("O3")
#define MAXN 105
void create_circuit(int M, vector<int> A) {
  int N = A.size();
 vector<int> C(M + 1);
  A.pb(0);
  for (int i=0;i<N;++i)
    C[A[i]] = A[i+1];

  C[0]=A[0];
  vector<int> X,Y;
  answer(C,X,Y);
}
# Verdict Execution time Memory Grader output
1 Correct 2 ms 204 KB Output is correct
2 Correct 31 ms 1984 KB Output is correct
3 Correct 16 ms 1576 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 11 ms 1356 KB Output is correct
6 Correct 25 ms 2216 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 204 KB Output is correct
2 Correct 31 ms 1984 KB Output is correct
3 Correct 16 ms 1576 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 11 ms 1356 KB Output is correct
6 Correct 25 ms 2216 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
8 Incorrect 25 ms 2092 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 204 KB Output is correct
2 Correct 31 ms 1984 KB Output is correct
3 Correct 16 ms 1576 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 11 ms 1356 KB Output is correct
6 Correct 25 ms 2216 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
8 Incorrect 25 ms 2092 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -