# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
39545 | igzi | ICC (CEOI16_icc) | C++14 | 0 ms | 2044 KiB |
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 "icc.h"
#define maxN 101
using namespace std;
vector <int> v[maxN];
vector <int> x;
void zameni(int m,int d){
for(int i=0;i<x.size()/2;i++){
int r=i/d;
if(r%2) swap(x[i],x[i+m]);
}
}
pair <int,int> resi(int A,int B,int a[],int b[]){
pair <int,int> ans;
ans=make_pair(-1,-1);
int s[maxN];
int l=0,d=A-1,m;
while(d!=l){
m=(l+d)/2;
for(int i=l;i<m;i++){
s[i-l]=a[i];
}
if(query(B,m-l+1,b,s)) d=m;
else l=m+1;
}
ans.first=l;
l=0,d=B-1;
while(d!=l){
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |