Submission #1101346

# Submission time Handle Problem Language Result Execution time Memory
1101346 2024-10-16T06:41:26 Z Warinchai Mechanical Doll (IOI18_doll) C++14
2 / 100
15 ms 3248 KB
#include "doll.h"
#include<bits/stdc++.h>
using namespace std;
void create_circuit(int M, std::vector<int> A) {
    int N=A.size();
    vector<int>C(M+1);
    int prev=0;
    for(int i=0;i<A.size();i++){
        C[prev]=A[i];
        prev=A[i];
    }
    C[prev]=0;
    answer(C, vector<int>(), vector<int>());
}

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();i++){
      |                 ~^~~~~~~~~
doll.cpp:5:9: warning: unused variable 'N' [-Wunused-variable]
    5 |     int N=A.size();
      |         ^
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 11 ms 2388 KB Output is correct
3 Correct 9 ms 2300 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 6 ms 1376 KB Output is correct
6 Correct 14 ms 2900 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 11 ms 2388 KB Output is correct
3 Correct 9 ms 2300 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 6 ms 1376 KB Output is correct
6 Correct 14 ms 2900 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Incorrect 15 ms 3248 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 340 KB Output is correct
2 Correct 11 ms 2388 KB Output is correct
3 Correct 9 ms 2300 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 6 ms 1376 KB Output is correct
6 Correct 14 ms 2900 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Incorrect 15 ms 3248 KB wrong motion
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -