Submission #1010368

# Submission time Handle Problem Language Result Execution time Memory
1010368 2024-06-29T01:44:04 Z HappyCapybara Mechanical Doll (IOI18_doll) C++17
2 / 100
12 ms 3160 KB
#include "doll.h"
#include<bits/stdc++.h>
using namespace std;

void create_circuit(int M, vector<int> A) {
  vector<int> C(M+1, 0);
  C[0] = A[0];
  for (int i=0; i<A.size()-1; i++) C[A[i]] = A[i+1];
  answer(C, {}, {});
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:8:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |   for (int i=0; i<A.size()-1; i++) C[A[i]] = A[i+1];
      |                 ~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 12 ms 2432 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 5 ms 1372 KB Output is correct
6 Correct 11 ms 3000 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 12 ms 2432 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 5 ms 1372 KB Output is correct
6 Correct 11 ms 3000 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 11 ms 3160 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 12 ms 2432 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 5 ms 1372 KB Output is correct
6 Correct 11 ms 3000 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 11 ms 3160 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -