#include <iostream>
#include <vector>
#include "grader.h"
using namespace std;
void solve(int n)
{
vector<int> q(n + 1, 0);
vector<int> rez(n + 1, 0);
for(int i = 1; i <= n; i++)
{
for(int j = 0; j < n; j++)
{
q[j] = i;
if(query(q) == 1)
{
rez[j] = i;
break;
}
q[j] = 0;
}
}
query(rez);
return;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
208 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
208 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
208 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |