# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1062207 |
2024-08-16T21:30:15 Z |
pera |
CONSUL (info1cup19_consul) |
C++17 |
|
1 ms |
344 KB |
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
void solve(int n){
srand(time(0));
vector<int> a(n + 1);
for(int x = 1;x <= 30;x ++){
int u = rand() % n + 1;
if(a[u]){
continue;
}
if(cnt(a[u] = kth(u)) > n / 3){
say_answer(a[u]);
}
}
say_answer(-1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Multiple answers provided for the same testcase! |
2 |
Halted |
0 ms |
0 KB |
- |