Submission #39545

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
395452018-01-16 12:31:03igziICC (CEOI16_icc)C++14
0 / 100
0 ms2044 KiB
#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){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

icc.cpp: In function 'void zameni(int, int)':
icc.cpp:10:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<x.size()/2;i++){
                  ^
icc.cpp: In function 'void spoj(int, int)':
icc.cpp:43:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<v[b].size();i++){
                  ^
icc.cpp: In function 'void run(int)':
icc.cpp:61:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
         for(i=0;i<n & -n;i++){
                  ^
icc.cpp:64:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(i=n & -n;i<x.size();i++){
                       ^
icc.cpp:71:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
             for(i=0;i<n & -n;i++){
                      ^
icc.cpp:74:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(i=n & -n;i<x.size();i++){
                       ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...