This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "xylophone.h"
using namespace std;
int a,b,c,d,e,i,j,ii,jj,zx,xc;
void solve(int n){
for(i=2; i<=n; i++){
c=query(i,n);
if(c!=n-1){
zx=i-1;
break;
}
}
answer(zx,1);
for(i=zx+1; i<=n; i++){
c=query(zx,i);
answer(i,c+1);
}
for(i=zx-1; i>=1; i--){
c=query(i,zx);
answer(i,c+1);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |