답안 #958759

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
958759 2024-04-06T14:36:56 Z djs100201 자동 인형 (IOI18_doll) C++17
2 / 100
15 ms 3164 KB
#include<bits/stdc++.h>
#include "doll.h"
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("avx2")
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using PP = pair<ll, P>;
const ll n_ =1e5+100, inf = (ll)2e9 * (ll)1e9 + 7, mod = 1e9+7;
ll n, m, tc = 1, a, b, c, d, sum, x, y, z, base, ans, k;
ll gcd(ll x,ll y){
	if(!y)return x;
	return gcd(y,x%y);
}
void create_circuit(int M, std::vector<int> A) {

	int N = A.size();
	std::vector<int> C(M + 1);
    //subtask_1
    for(int i=0;i+1<N;i++)C[A[i]]=A[i+1];
	C[0] = A[0];
	std::vector<int> X,Y;
	answer(C, X, Y);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 12 ms 2392 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 1 ms 600 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2996 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 12 ms 2392 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 1 ms 600 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2996 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 15 ms 3164 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 12 ms 2392 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 1 ms 600 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2996 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 15 ms 3164 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -