Submission #139368

# Submission time Handle Problem Language Result Execution time Memory
139368 2019-07-31T15:21:10 Z ly20 Mechanical Doll (IOI18_doll) C++17
2 / 100
30 ms 2232 KB
#include <bits/stdc++.h>

#include "doll.h"

using namespace std;

const int MAXN=212345;

#define debug(args...) fprintf(stderr,args)

void create_circuit(int m, vector<int> a) {
  int n = a.size();
  vector<int> c(m+1),x,y;
  for(int i=0;i<m+1;i++)c[i]=0;
  for(int i=0;i<n-1;i++)
  {
    c[a[i]]=a[i+1];
  }
  c[a[n-1]]=0;
  c[0]=a[0];
  answer(c,x,y);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 30 ms 1968 KB Output is correct
3 Correct 23 ms 1604 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 15 ms 1356 KB Output is correct
6 Correct 25 ms 2232 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 30 ms 1968 KB Output is correct
3 Correct 23 ms 1604 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 15 ms 1356 KB Output is correct
6 Correct 25 ms 2232 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
8 Incorrect 25 ms 2100 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 30 ms 1968 KB Output is correct
3 Correct 23 ms 1604 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 15 ms 1356 KB Output is correct
6 Correct 25 ms 2232 KB Output is correct
7 Correct 1 ms 256 KB Output is correct
8 Incorrect 25 ms 2100 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 -