답안 #1112303

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1112303 2024-11-14T03:31:12 Z thelegendary08 자동 인형 (IOI18_doll) C++17
2 / 100
17 ms 3528 KB
#include "doll.h"
#include<bits/stdc++.h>
#define vi vector<int>
#define pb push_back
#define f0r(i,n) for(int i = 0; i<n; i++)
using namespace std;
void create_circuit(int M, std::vector<int> A) {
	vi v;
	v.pb(0);
	for(auto u : A)v.pb(u);
	v.pb(0);
	
	vi c(M+1);
	vi x;
	vi y;
	f0r(i, v.size() - 1){
		c[v[i]] = v[i+1];
	}
	answer(c,x,y);
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:5:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    5 | #define f0r(i,n) for(int i = 0; i<n; i++)
......
   16 |  f0r(i, v.size() - 1){
      |      ~~~~~~~~~~~~~~~              
doll.cpp:16:2: note: in expansion of macro 'f0r'
   16 |  f0r(i, v.size() - 1){
      |  ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 11 ms 2260 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 6 ms 1512 KB Output is correct
6 Correct 16 ms 3384 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 11 ms 2260 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 6 ms 1512 KB Output is correct
6 Correct 16 ms 3384 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Incorrect 17 ms 3528 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 11 ms 2260 KB Output is correct
4 Correct 1 ms 336 KB Output is correct
5 Correct 6 ms 1512 KB Output is correct
6 Correct 16 ms 3384 KB Output is correct
7 Correct 1 ms 336 KB Output is correct
8 Incorrect 17 ms 3528 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 336 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 336 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 336 KB wrong motion
2 Halted 0 ms 0 KB -