Submission #765997

# Submission time Handle Problem Language Result Execution time Memory
765997 2023-06-25T08:35:59 Z ono_de206 Mechanical Doll (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);
}
# Verdict Execution time Memory 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
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -