#include "koala.h"
const int N = 100;
int a[N], r[N];
int minValue(int n, int w)
{
a[0] = 1;
a[1] = 0;
playRound(a, r);
if (r[0] != 2) {
a[0] = 0;
a[1] = 1;
playRound(a, r);
}
for (int i = 0; i < n; ++i) if (!r[i]) return i;
return -1;
}
int maxValue(int n, int w)
{
return 0;
}
int greaterValue(int n, int w)
{
return 0;
}
void allValues(int n, int w, int *p)
{
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
5 ms |
200 KB |
Output is correct |
2 |
Correct |
5 ms |
200 KB |
Output is correct |
3 |
Correct |
5 ms |
200 KB |
Output is correct |
4 |
Correct |
5 ms |
200 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |