답안 #765997

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
765997 2023-06-25T08:35:59 Z ono_de206 자동 인형 (IOI18_doll) C++14
2 / 100
16 ms 3028 KB
#include "doll.h"
#include<bits/stdc++.h>
using namespace std;

#define in insert
#define all(x) x.begin(),x.end()
#define pb push_back
#define eb emplace_back
#define ff first
#define ss second

// #define int long long
 
typedef long long ll;
typedef vector<int> vi;
typedef set<int> si;
typedef multiset<int> msi;
typedef pair<int, int> pii;
typedef vector<pii> vpii;

void create_circuit(int m, std::vector<int> a) {
	int n = a.size();
	vector<int> c(m + 1, 0), x, y;
	for(int i = 0; i < n - 1; i++) {
		c[a[i]] = a[i + 1];
	}
	c[0] = a[0];
	c[a[n - 1]] = 0;
	answer(c, x, y);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 13 ms 2360 KB Output is correct
3 Correct 11 ms 1964 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 7 ms 1492 KB Output is correct
6 Correct 15 ms 2864 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 13 ms 2360 KB Output is correct
3 Correct 11 ms 1964 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 7 ms 1492 KB Output is correct
6 Correct 15 ms 2864 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 16 ms 3028 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 13 ms 2360 KB Output is correct
3 Correct 11 ms 1964 KB Output is correct
4 Correct 1 ms 300 KB Output is correct
5 Correct 7 ms 1492 KB Output is correct
6 Correct 15 ms 2864 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 16 ms 3028 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -