#include "advisor.h"
#include <bits/stdc++.h>
using namespace std;
#define dbgv(v) cout<<#v<<" = "; f(i,0,v.size()) cout<<v[i]<<" "; cout<<endl
#define dbga(a,x,y) cout<<#a<<" = "; f(i,x,y) cout<<a[i]<<" "; cout<<endl
#define erorp(x) cout<<#x<<"={"<<x.F<<" , "<<x.S<<"}"<<endl
#define eror(x) cout<<#x<<'='<<(x)<<endl
#define f_(i,a,b) for(int i=a;i>=b;i--)
#define f(i,a,b) for(int i=a;i<b;i++)
#define nb(x) __builtin_popcount(x)
#define all(v) v.begin(),v.end()
#define bit(n,k) (((n)>>(k))&1)
#define Add(x,y) x=(x+y)%mod
#define maxm(a,b) a=max(a,b)
#define minm(a,b) a=min(a,b)
#define lst(x) x[x.size()-1]
#define sz(x) int(x.size())
#define mp make_pair
#define ll long long
#define pb push_back
#define S second
#define F first
void ComputeAdvice(int *C, int N, int K, int M) {
WriteAdvice(0);
WriteAdvice(1);
}
#include "assistant.h"
#include <bits/stdc++.h>
using namespace std;
#define dbgv(v) cout<<#v<<" = "; f(i,0,v.size()) cout<<v[i]<<" "; cout<<endl
#define dbga(a,x,y) cout<<#a<<" = "; f(i,x,y) cout<<a[i]<<" "; cout<<endl
#define erorp(x) cout<<#x<<"={"<<x.F<<" , "<<x.S<<"}"<<endl
#define eror(x) cout<<#x<<'='<<(x)<<endl
#define f_(i,a,b) for(int i=a;i>=b;i--)
#define f(i,a,b) for(int i=a;i<b;i++)
#define nb(x) __builtin_popcount(x)
#define all(v) v.begin(),v.end()
#define bit(n,k) (((n)>>(k))&1)
#define Add(x,y) x=(x+y)%mod
#define maxm(a,b) a=max(a,b)
#define minm(a,b) a=min(a,b)
#define lst(x) x[x.size()-1]
#define sz(x) int(x.size())
#define mp make_pair
#define ll long long
#define pb push_back
#define S second
#define F first
void Assist(unsigned char *A, int N, int K, int R) {
if(A[0]=='1') return ;
int i;
for (i = 0; i < N; i++) {
int req = GetRequest();
if (req >= K)
PutBack(req % K);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
508 KB |
Error - Not putting back color when it is not on the scaffold |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
3 ms |
828 KB |
Error - Putting back a color that is not on the scaffold |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
21 ms |
2268 KB |
Error - Putting back a color that is not on the scaffold |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
524 KB |
Error - Putting back a color that is not on the scaffold |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
25 ms |
2684 KB |
Error - Putting back a color that is not on the scaffold |
2 |
Incorrect |
25 ms |
2632 KB |
Error - Not putting back color when it is not on the scaffold |
3 |
Incorrect |
26 ms |
2688 KB |
Error - Putting back a color that is not on the scaffold |
4 |
Incorrect |
28 ms |
2652 KB |
Error - Not putting back color when it is not on the scaffold |
5 |
Incorrect |
24 ms |
2620 KB |
Error - Putting back a color when it is already on the scaffold |
6 |
Incorrect |
37 ms |
2572 KB |
Error - Putting back a color that is not on the scaffold |
7 |
Incorrect |
25 ms |
2572 KB |
Error - Not putting back color when it is not on the scaffold |
8 |
Incorrect |
24 ms |
2580 KB |
Error - Putting back a color that is not on the scaffold |
9 |
Incorrect |
27 ms |
2636 KB |
Error - Putting back a color that is not on the scaffold |
10 |
Incorrect |
25 ms |
2664 KB |
Error - Not putting back color when it is not on the scaffold |