Submission #1041662

# Submission time Handle Problem Language Result Execution time Memory
1041662 2024-08-02T06:50:37 Z ReLice Mechanical Doll (IOI18_doll) C++17
0 / 100
30 ms 9820 KB
#include "doll.h"
#include <bits/stdc++.h>
#define ll int
#define vll vector<ll>
#define pb push_back
#define sz size()
using namespace std;
vll x(400000,0),y(400000,0),c;
vector<vll> v;
void create_circuit(int m, std::vector<int> a) {
	int n = a.size();
	ll i;
	c.resize(m+1,0);
	c[0]=a[0];
	ll bit=0;
	while(n>1){
		n/=2;
		bit++;
	}
	c[0]=1;
	if(bit==0)c[1]=0;
	else c[1]=-1;
	for(i=0;i<bit;i++){
		x[i]=1;
		y[i]=-i-2;
	}
	y[bit-1]=0;
	answer(c, x, y);
}
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 9816 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 9816 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 29 ms 9816 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 9820 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 9776 KB wrong motion
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 30 ms 9776 KB wrong motion
2 Halted 0 ms 0 KB -