답안 #1101346

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1101346 2024-10-16T06:41:26 Z Warinchai 자동 인형 (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();
      |         ^
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 340 KB wrong motion
2 Halted 0 ms 0 KB -