Submission #950141

# Submission time Handle Problem Language Result Execution time Memory
950141 2024-03-20T05:53:11 Z pcc Mouse (info1cup19_mouse) C++17
5.99999 / 100
22 ms 344 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;

#define ll long long
#define pll pair<ll,ll>
#define pii pair<int,int>
#define fs first
#define sc second
#define tlll tuple<ll,ll,ll>


void solve(int N){
	if(N>7)return;
	vector<int> v;
	for(int i = 1;i<=N;i++)v.push_back(i);
	while(query(v) != N&&next_permutation(v.begin(),v.end()));
	return;
}
# Verdict Execution time Memory Grader output
1 Correct 20 ms 344 KB Correct! Number of queries: 3487
2 Correct 1 ms 344 KB Correct! Number of queries: 18
3 Correct 2 ms 344 KB Correct! Number of queries: 328
4 Correct 16 ms 344 KB Correct! Number of queries: 3528
5 Correct 22 ms 344 KB Correct! Number of queries: 4783
6 Correct 1 ms 344 KB Correct! Number of queries: 88
# Verdict Execution time Memory Grader output
1 Correct 20 ms 344 KB Correct! Number of queries: 3487
2 Correct 1 ms 344 KB Correct! Number of queries: 18
3 Correct 2 ms 344 KB Correct! Number of queries: 328
4 Correct 16 ms 344 KB Correct! Number of queries: 3528
5 Correct 22 ms 344 KB Correct! Number of queries: 4783
6 Correct 1 ms 344 KB Correct! Number of queries: 88
7 Incorrect 0 ms 344 KB Unexpected end of file - int32 expected
8 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 20 ms 344 KB Correct! Number of queries: 3487
2 Correct 1 ms 344 KB Correct! Number of queries: 18
3 Correct 2 ms 344 KB Correct! Number of queries: 328
4 Correct 16 ms 344 KB Correct! Number of queries: 3528
5 Correct 22 ms 344 KB Correct! Number of queries: 4783
6 Correct 1 ms 344 KB Correct! Number of queries: 88
7 Incorrect 0 ms 344 KB Unexpected end of file - int32 expected
8 Halted 0 ms 0 KB -