Submission #1015042

# Submission time Handle Problem Language Result Execution time Memory
1015042 2024-07-06T03:45:21 Z emptypringlescan Mouse (info1cup19_mouse) C++17
0 / 100
0 ms 344 KB
#include <bits/stdc++.h>
using namespace std;
#include "grader.h"
void solve(int n){
	mt19937 rng(177013);
	int perm[n];
	for(int i=0; i<n; i++) perm[i]=i+1;
	while(true){
		vector<int> v;
      v.push_back(0);
		for(int i=0; i<n; i++) v.push_back(perm[i]);
		int x=query(v);
		if(x==n) return;
		shuffle(perm,perm+n,rng);
	}
}
# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 344 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 344 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 344 KB Execution killed with signal 13
2 Halted 0 ms 0 KB -