QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#563068#9239. Hieroglyphsbachbeo2007100 ✓59ms22568kbC++233.0kb2024-09-14 01:51:332024-09-14 01:51:33

Judging History

你现在查看的是最新测评结果

  • [2024-09-14 01:51:33]
  • 评测
  • 测评结果:100
  • 用时:59ms
  • 内存:22568kb
  • [2024-09-14 01:51:33]
  • 提交

answer

#include "hieroglyphs.h"
#include <bits/stdc++.h>
using namespace std;
const int S = 200001;
vector<int> P,Q;

struct Info{
  int p=0;
  vector<int> I,cnt,nxt,pos;

  Info(vector<int> _I):I(_I){
    int N=(int)I.size();
    cnt.assign(S,0);
    pos.assign(S,N);
    nxt.assign(N,N);
    for(int i=N-1;i>=0;i--){
      int X=I[i];
      cnt[X]++;
      nxt[i]=pos[X];
      pos[X]=i;
    }
  }
  int get(int x){
    return cnt[x];
  }
  void next(){
    cnt[I[p]]--;
    pos[I[p]]=nxt[p];
    p++;
  }
  void move(int x){
    while(p<x) next();
  }
  void jump(int x){
    move(pos[x]+1);
  }
};

vector<int> construct(vector<int> A,vector<int> B){
  int N=(int)A.size(),M=(int)B.size();
  vector<int> cntA(S),cntB(S);
  for(int i=0;i<N;i++) cntA[A[i]]++;
  for(int i=0;i<M;i++) cntB[B[i]]++;

  vector<int> posA,posB,res;
  for(int i=0;i<N;i++) if(cntA[A[i]]<=cntB[A[i]]) posA.push_back(i);
  for(int i=0;i<M;i++) if(cntB[B[i]]<cntA[B[i]]) posB.push_back(i);
  posA.push_back(N),posB.push_back(M);
  auto pA=posA.begin(),pB=posB.begin();

  Info fA(A),fB(B),gA(A),gB(B);
  gA.move(*pA);gB.move(*pB);

  while(*pA!=N || *pB!=M){
    bool dA=true,dB=true;
    int nA=A[*pA],nB=B[*pB];
    if(*pA!=N){
      dA&=fB.get(nA)>gB.get(nA);
      dB&=gB.get(nA)>=gA.get(nA);
    }
    else dA=false;
    if(*pB!=M){
      dB&=fA.get(nB)>gA.get(nB);
      dA&=gA.get(nB)>=gB.get(nB);
    }
    else dB=false;
    if(dA==dB) return {-1};
    if(dA){
      res.push_back(nA);
      fB.jump(nA);
      swap(fA,gA);
      gA.move(*(++pA));
      fA.next();
    }
    else{
      res.push_back(nB);
      fA.jump(nB);
      swap(fB,gB);
      gB.move(*(++pB));
      fB.next();
    }
    P.push_back(fA.p-1);
    Q.push_back(fB.p-1);
  }
  return res;
}

vector<int> cal(vector<int> A,vector<int> B){
  int N=(int)A.size(),M=(int)B.size();
  vector<vector<int>> pos(S);
  for(int i=0;i<M;i++) pos[B[i]].push_back(i);
  for(int i=0;i<S;i++) pos[i].push_back(M);
  
  vector<pair<int,int>> st;
  st.push_back({-1,-1});
  vector<int> lst(S,-1),res(N);
  for(int i=0;i<N;i++){
    int cur=lower_bound(st.begin(),st.end(),make_pair(lst[A[i]],-1))->second;
    if(cur<M) cur=*upper_bound(pos[A[i]].begin(),pos[A[i]].end(),cur);
    res[i]=cur;
    while(st.back().second>=cur) st.pop_back();
    st.push_back({i,cur});
    lst[A[i]]=i;
  }
  return res;
}

bool check(vector<int> A,vector<int> B,vector<int> C){
  int N=(int)A.size(),M=(int)B.size(),K=(int)C.size();
  
  vector<int> pos=cal(A,B),pre(N,-1);
  vector<bool> match(N);
  for(int i=0;i<K;i++) match[P[i]]=true,pre[P[i]]=i;
  for(int i=1;i<N;i++) if(pre[i]==-1) pre[i]=pre[i-1];
  for(int i=0;i<N;i++) if(!match[i] && pre[i]!=-1 && pos[i]<=Q[pre[i]]) return false;
  return true;
}

std::vector<int> ucs(std::vector<int> A, std::vector<int> B) {
  vector<int> res=construct(A,B);
  if(res==vector<int>{-1}) return {-1};
  if(!check(A,B,res)) return {-1};
  swap(A,B),swap(P,Q);
  if(!check(A,B,res)) return {-1};
  return res;
}

詳細信息

Subtask #1:

score: 3
Accepted

Test #1:

score: 3
Accepted
time: 7ms
memory: 15564kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10 10
7 1 9 2 3 5 0 6 8 4
7 1 9 2 3 5 0 6 8 4

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
10
7 1 9 2 3 5 0 6 8 4

result:

ok 

Test #2:

score: 3
Accepted
time: 0ms
memory: 11124kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10 10
7 9 4 5 6 8 2 1 3 0
7 9 4 5 8 6 2 1 3 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #3:

score: 3
Accepted
time: 14ms
memory: 15608kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
1000 1000
227 14 144 355 329 614 282 987 90 67 421 904 584 672 129 286 187 498 450 29 342 688 521 133 585 769 794 138 731 946 28 996 402 935 96 855 2 186 361 1 451 914 318 720 296 389 356 364 400 971 387 979 520 885 604 62 814 474 479 952 394 640 959 246 509 171 486 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1000
227 14 144 355 329 614 282 987 90 67 421 904 584 672 129 286 187 498 450 29 342 688 521 133 585 769 794 138 731 946 28 996 402 935 96 855 2 186 361 1 451 914 318 720 296 389 356 364 400 971 387 979 520 885 604 62 814 474 479 952 394 640 959 246 509 171 486 35...

result:

ok 

Test #4:

score: 3
Accepted
time: 0ms
memory: 11236kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
997 997
615 691 867 398 544 236 744 802 466 701 700 106 636 993 668 105 409 810 957 249 619 293 729 339 189 537 70 237 487 360 276 693 181 954 85 310 669 52 86 12 209 787 294 188 64 561 828 44 564 480 895 283 289 924 192 783 890 948 674 279 114 229 822 771 458 179 65...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #5:

score: 3
Accepted
time: 52ms
memory: 22196kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
19751 36170 33104 26686 54203 5214 37609 58763 10536 82655 80942 70794 54794 16739 55137 38172 11159 41408 34850 54300 58781 6684 19791 28867 83340 19360 7277 54060 59942 87198 45397 49198 66950 26865 7468 7059 58566 43804 99565 76536 48614 34101 26106 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
100000
19751 36170 33104 26686 54203 5214 37609 58763 10536 82655 80942 70794 54794 16739 55137 38172 11159 41408 34850 54300 58781 6684 19791 28867 83340 19360 7277 54060 59942 87198 45397 49198 66950 26865 7468 7059 58566 43804 99565 76536 48614 34101 26106 5596...

result:

ok 

Test #6:

score: 3
Accepted
time: 15ms
memory: 17304kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
57387 11861 84433 84680 51764 17643 86122 83141 74972 47794 40972 60391 93655 62206 23852 51121 39250 5924 83139 29296 56131 49532 51226 82006 3512 64857 97761 67854 81216 44976 43459 57540 14182 6532 49925 71980 75037 14724 22961 5863 51568 85048 44306...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #7:

score: 3
Accepted
time: 14ms
memory: 17232kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
84974 12498 84270 93621 94069 64811 16796 8508 5403 97838 69731 94154 34731 38790 45254 19912 63443 17097 25188 8738 22665 3307 92076 63795 24089 54926 82925 31639 81818 84608 65732 50776 53506 41939 34765 62498 39249 80937 95327 706 45760 39603 10343 6...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Subtask #2:

score: 15
Accepted

Test #8:

score: 15
Accepted
time: 51ms
memory: 20024kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89984 90016
167910 187180 47437 150113 199404 61979 49501 155514 167910 175137 104441 149717 155514 13573 170025 181983 117868 13573 149717 166954 145922 29787 93788 58581 158693 51768 120499 17700 17700 4746 119328 33450 138501 137246 33450 135751 84363 168724 15701...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
187180 47437 150113 199404 61979 49501 167910 175137 104441 155514 170025 181983 117868 13573 149717 166954 145922 29787 93788 58581 158693 51768 120499 17700 4746 119328 138501 137246 33450 135751 84363 168724 157010 108760 44137 113102 139611 199377 86291 ...

result:

ok 

Test #9:

score: 15
Accepted
time: 55ms
memory: 20108kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90003 90000
14155 14155 151711 151711 31573 66800 139383 1925 46366 116207 18428 18428 66618 83155 133084 9526 176340 87155 193385 52734 133084 1925 79878 137917 176340 32150 15872 66618 116207 194766 40942 31265 147928 124727 97615 58260 161323 8229 74777 146601 959...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
14155 151711 31573 66800 139383 46366 18428 83155 9526 87155 193385 52734 133084 1925 79878 137917 176340 32150 15872 66618 116207 194766 40942 31265 147928 124727 97615 58260 161323 8229 74777 146601 37955 95987 118028 29763 15233 101780 54731 36231 65482 3...

result:

ok 

Test #10:

score: 15
Accepted
time: 34ms
memory: 19708kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89985 90021
192793 185974 48491 162906 75646 99166 183316 75646 52957 33987 83321 64287 83321 123979 130761 130761 154020 134587 154020 186921 178874 71496 184891 82981 123873 186777 127271 139973 67220 127271 140236 191126 67220 36003 36003 23064 43454 116351 168977...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #11:

score: 15
Accepted
time: 38ms
memory: 19972kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90014 89995
17256 105238 17256 105238 105405 10314 111640 70659 55569 98087 65019 14479 70659 32231 181153 193842 66318 3621 66318 198871 55518 42843 186825 134959 134959 153709 42843 151583 144591 111568 134786 192560 80263 120343 185374 185374 169728 9032 97727 828...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #12:

score: 15
Accepted
time: 52ms
memory: 20000kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90008 90004
180511 161015 16262 16262 52999 127190 178460 35560 178460 184371 2815 161015 184371 2815 206 127190 87119 33079 23188 23188 186591 160908 53562 144431 177868 127055 197253 117791 177868 188280 194433 194433 144825 44149 70831 56651 56651 96053 80656 7502...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60004
180511 16262 52999 35560 178460 161015 184371 2815 206 127190 87119 33079 23188 186591 160908 53562 144431 127055 197253 117791 177868 188280 194433 144825 44149 70831 56651 96053 80656 75028 124252 134693 180419 43034 28130 119187 21358 133748 21079 143816 ...

result:

ok 

Test #13:

score: 15
Accepted
time: 54ms
memory: 20044kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90042 89979
29707 12326 194838 29707 99720 55349 103409 69802 30015 69802 12326 137622 175331 97157 62498 39504 155925 44517 112910 44517 82971 149911 62498 45144 186022 58102 148090 186022 75958 75958 183679 164385 109694 189132 148090 176295 112788 42671 178545 170...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #14:

score: 15
Accepted
time: 50ms
memory: 20040kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89340 89340
183027 184217 184217 19614 137650 162293 154620 154620 95720 19614 62759 95720 106871 18630 106871 64176 46630 136366 85308 61147 85308 61088 61088 61147 72757 72757 146185 128098 164684 195877 194714 174677 174677 132819 99452 120455 158757 88719 12592 7...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #15:

score: 15
Accepted
time: 34ms
memory: 19248kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
81899 81712
133161 60058 7991 191509 24042 172771 119105 93332 20512 20512 93332 129029 59904 80903 128409 6600 80903 152168 142530 15870 48290 18054 18054 152484 129486 12498 97695 140079 142530 12498 105235 138790 117554 48290 105235 97695 10587 13289 114696 159501...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #16:

score: 15
Accepted
time: 59ms
memory: 20100kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89983 90017
62167 5212 172114 166105 156602 182219 49031 129377 149074 172260 96181 146767 50711 21748 87979 167311 167311 173027 10705 37169 56538 126065 11447 137129 27807 112690 98165 3090 136578 60755 64401 178388 64401 33054 126039 119010 161880 178388 106535 10...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
62167 5212 172114 166105 156602 182219 49031 129377 149074 172260 96181 146767 50711 21748 87979 167311 173027 10705 37169 56538 126065 11447 137129 27807 112690 98165 3090 136578 60755 64401 33054 119010 161880 178388 106535 100927 126039 78863 8918 65901 1...

result:

ok 

Test #17:

score: 15
Accepted
time: 58ms
memory: 20112kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90005 89998
159636 17541 123989 19063 155024 162228 15242 198324 56042 147801 15242 80825 198324 155024 29419 188471 114996 164943 114996 14575 55442 160859 80825 21380 146269 167158 59090 7498 104945 178208 7498 10615 2536 117201 2536 61625 38157 178208 70836 61625 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
159636 17541 123989 19063 162228 56042 147801 15242 198324 155024 29419 188471 164943 114996 14575 55442 160859 80825 21380 146269 167158 59090 104945 7498 117201 2536 38157 178208 61625 10615 114903 70836 40291 149555 147446 13014 37122 122518 26818 1783 16...

result:

ok 

Test #18:

score: 15
Accepted
time: 50ms
memory: 20108kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90012 89994
7582 147249 52296 167031 79411 107931 147249 154144 164352 164352 154144 164729 164729 8391 107931 52296 63959 23434 40925 54558 65304 56805 44087 129914 129914 13965 29354 165087 10418 165087 81112 28639 119885 119885 108668 152019 184069 18770 197617 48...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60002
7582 167031 79411 147249 164352 154144 164729 8391 107931 52296 63959 23434 40925 54558 65304 56805 44087 129914 13965 29354 10418 165087 81112 28639 119885 108668 152019 184069 18770 171744 48184 73804 195925 197617 99391 149332 182568 1467 118564 87124 187...

result:

ok 

Test #19:

score: 15
Accepted
time: 54ms
memory: 20076kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90003 90006
121976 121976 175136 60648 60648 46100 84834 70131 34959 102476 101779 115644 58454 189235 107730 73220 73220 165488 2798 105709 25511 96243 114296 96243 81027 138196 114296 75646 101039 101039 8342 9887 9887 75646 8342 17034 156499 169993 164059 114097 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60003
121976 175136 60648 46100 84834 70131 34959 102476 101779 115644 58454 189235 107730 73220 165488 2798 105709 25511 96243 81027 138196 114296 101039 9887 75646 8342 17034 156499 169993 164059 114097 160470 47410 56084 2130 15793 165535 114282 35020 26586 809...

result:

ok 

Test #20:

score: 15
Accepted
time: 55ms
memory: 19060kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90023 89977
97432 77736 78024 162161 136245 97613 68961 158454 158454 22880 128111 106287 86215 160755 192146 192146 173232 46553 174976 174976 193209 161384 20185 120284 161384 97937 168263 125065 117818 168263 33563 89459 19037 52446 21981 102793 194055 160001 3012...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #21:

score: 15
Accepted
time: 49ms
memory: 19320kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89930 90070
38950 107046 8338 183588 107046 195906 73489 176547 75450 61255 167063 61255 161703 94893 135288 77823 100303 74710 159158 73489 186182 183152 183152 183588 71812 60497 60497 143518 176547 132425 149372 192573 131597 71812 161703 25742 58723 22034 177379 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #22:

score: 15
Accepted
time: 37ms
memory: 18912kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90015 89985
114229 180772 185210 101594 85363 72482 59445 2692 101821 82844 93680 74207 124253 194423 18059 82352 70507 194423 112461 191677 191677 164152 164928 137560 91229 178639 10127 10127 155527 192480 178639 192081 168565 55181 124896 196748 50281 162188 16367...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #23:

score: 15
Accepted
time: 51ms
memory: 19388kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89931 90069
114682 161400 186051 19679 59431 136896 188096 7781 188096 150890 192777 10044 89404 150890 185197 114682 194450 128640 155369 136896 73142 190792 89404 83622 70481 45963 32709 155369 68292 192804 192019 10044 122371 186711 32709 81686 155660 193104 15566...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #24:

score: 15
Accepted
time: 38ms
memory: 19428kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90011 89989
34559 179885 129846 129846 172975 19841 34559 98482 178840 19841 78970 61309 22732 192900 61008 146599 120259 22732 157218 148985 37977 153518 148985 192900 107320 155151 180 46872 157431 93981 35890 35890 145931 109913 21012 147075 115932 147075 117646 7...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #25:

score: 15
Accepted
time: 40ms
memory: 18900kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89996 90004
96494 96494 67084 24948 24948 136334 138368 146403 152924 164936 138368 82515 180885 89581 189332 58993 180885 32059 10552 82515 35581 145005 145005 6092 144004 12849 110147 15941 189731 15941 56047 110147 164933 164933 17427 17427 103811 58398 10822 1720...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #26:

score: 15
Accepted
time: 53ms
memory: 19232kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90010 89990
139876 175889 74191 175119 178875 68802 179348 68529 86401 139876 86401 74191 58031 193236 46530 97956 118885 185052 147475 147475 144769 138722 169636 14607 38440 165270 172804 108018 63536 115726 187995 67927 73954 36077 195312 165270 129243 89678 13929...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
175889 178875 139876 86401 74191 46530 97956 147475 38440 172804 63536 67927 165270 129243 108018 86561 74696 60922 34986 185560 103978 125987 93043 109079 159267 102415 139293 81 52858 88015 188616 138722 62393 14607 82690 187881 86658 167386 197542 36077 7...

result:

ok 

Test #27:

score: 15
Accepted
time: 35ms
memory: 18896kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89984 90016
148259 108653 82910 137210 127140 153037 153037 47 123010 118211 27818 43238 43238 47683 185107 42847 146973 42847 111891 93399 161248 54023 195890 195890 74591 146844 97986 165428 97986 79353 119869 146844 166606 47 127081 45753 45753 61768 34970 124911 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #28:

score: 15
Accepted
time: 34ms
memory: 19124kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90034 89966
181370 194705 148837 199976 159502 97826 199976 166592 54625 160999 160999 3408 192032 138337 70817 97701 97826 1310 20883 67834 22556 159502 156509 67834 102385 194705 127096 196521 192086 127096 146429 1310 74085 118895 146442 126579 161618 126579 13687...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #29:

score: 15
Accepted
time: 36ms
memory: 18916kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89995 90005
170352 8169 124978 21676 15395 148016 38352 30416 90196 148016 28429 100434 15395 167708 186910 60468 89049 100683 60468 154151 154151 18708 111113 52776 108280 104565 104565 149721 46686 97093 167708 2693 2630 191458 180366 44196 168467 30494 179588 2035...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #30:

score: 15
Accepted
time: 28ms
memory: 18992kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90021 89979
71531 18488 131694 192927 128370 192927 112392 122119 19488 69334 54577 112392 131694 69334 18238 196492 3101 157832 86679 610 48446 67495 41066 48446 121646 121646 51702 19929 287 98727 106365 96072 66845 78228 137156 153870 111124 153870 18447 91372 632...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #31:

score: 15
Accepted
time: 36ms
memory: 18996kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90036 89964
40082 67556 41903 67556 29056 142187 78536 27083 129338 160591 199754 199754 133531 177088 133531 78536 43951 87745 172978 140182 41785 110486 184926 83556 184926 99399 86360 129338 457 77949 110811 170651 109567 179068 179068 5180 91349 91349 45907 29683...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #32:

score: 15
Accepted
time: 31ms
memory: 19008kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89961 90042
177407 175700 112203 128334 186352 57166 57166 25086 119788 119788 89393 87475 41999 24772 89393 136025 189349 178608 119631 58234 196998 122131 149364 190222 163442 66505 172779 163442 82197 146667 142512 196456 156187 142512 95454 88215 72721 148008 495...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #33:

score: 15
Accepted
time: 31ms
memory: 19004kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89964 90039
111110 63872 70615 60333 177498 177498 108032 62675 165203 60333 95599 58255 111110 33690 94644 107254 84755 32768 173504 90265 58255 81203 182148 173504 82520 94644 51090 32950 11919 146213 190638 32950 191054 64866 99205 94800 88533 138054 181913 95165 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #34:

score: 15
Accepted
time: 32ms
memory: 19004kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89992 90011
176735 74439 77821 100046 36567 58138 189960 125256 100046 105645 21172 78859 193894 193894 55642 125256 113474 126657 11296 189960 21172 16790 145054 103982 114876 103982 104294 171002 11296 121565 123103 127291 76976 34439 22921 184527 126657 123103 184...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #35:

score: 15
Accepted
time: 53ms
memory: 19288kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90023 89980
134845 178583 7696 68961 178583 13813 29043 48375 13813 81743 109106 113502 81743 168783 164873 90710 151405 164873 106078 58548 176425 60529 8503 62624 181707 194372 74466 159631 159631 73444 186997 186997 136534 136534 57444 168783 194215 194215 97960 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
178583 13813 81743 90710 164873 181707 159631 186997 136534 168783 194215 134616 62624 142665 57444 88066 165096 5162 100349 13683 160456 23884 66402 42178 70643 9875 154271 16778 151405 107422 133949 155967 144805 54943 80743 194644 107932 75706 113502 1591...

result:

ok 

Test #36:

score: 15
Accepted
time: 43ms
memory: 19124kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90047 89956
118 65973 150168 4413 118 84330 21660 21660 94473 94473 52317 466 42811 12797 12797 43486 10410 153890 88506 145619 114236 45610 145619 153890 35241 88506 194985 52317 186424 179771 106621 175525 154615 146590 99148 146198 99673 126971 25306 146198 55383 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
118 21660 94473 12797 43486 153890 114236 145619 88506 52317 186424 146590 146198 55383 144398 10251 43204 11337 58853 168321 26772 34117 159256 176590 4413 179771 108973 186532 152762 39624 1067 99673 99148 61615 41556 41426 118317 45610 108750 7026 126831 ...

result:

ok 

Test #37:

score: 15
Accepted
time: 26ms
memory: 18896kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89980 90023
142274 37365 16140 16140 104199 41459 21134 183713 37365 27454 182281 166942 179790 29166 74949 351 38701 351 12807 130920 8498 127758 144901 50549 126044 78144 105181 32131 193124 179165 126044 123185 123185 64643 141680 56242 25028 14356 33703 107701 95...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #38:

score: 15
Accepted
time: 31ms
memory: 18900kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90006 89997
144989 55560 82807 55560 83550 35663 8483 55459 76812 60704 55459 12780 5682 168487 92946 168487 97718 35663 11794 174494 174494 16591 125008 77679 186747 129476 72808 194672 93386 167289 129476 171046 32904 171046 21964 29416 185809 105881 6018 83671 835...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #39:

score: 15
Accepted
time: 35ms
memory: 19168kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89991 90012
27625 167737 15476 15718 190591 49513 9863 98721 134188 22524 9863 49513 22524 83915 15718 26656 23953 188099 54697 167737 79097 98220 99015 189507 155825 102422 104489 185394 154299 81838 186112 100243 100243 152299 48087 79582 63330 192568 12434 12434 4...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #40:

score: 15
Accepted
time: 30ms
memory: 18996kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90059 89944
21307 84720 18643 42811 126751 180702 22019 117358 126751 180702 165700 36887 185711 131900 100929 127249 64728 780 111134 145075 42811 80169 98795 69940 17702 181447 181447 145075 166519 186039 171545 102320 103482 143295 137453 29612 29612 90467 6854 27...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #41:

score: 15
Accepted
time: 56ms
memory: 19404kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89990 90013
15174 192597 127047 79499 2241 190706 155545 110546 140434 93383 110546 109587 129431 56751 2241 147662 28577 153831 193690 14440 69091 40512 38802 192714 176313 26278 159780 101277 54861 101277 14678 26278 23059 149064 77674 58412 59801 132901 8579 10628...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
192597 155545 110546 2241 193690 176313 101277 26278 58412 8579 106289 68685 143440 146774 16417 17247 118507 58847 144808 160475 138555 169408 59068 104683 129747 119979 56751 33007 80350 87033 148060 40689 138223 194733 3643 5569 129175 109950 160484 17081...

result:

ok 

Test #42:

score: 15
Accepted
time: 35ms
memory: 19008kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90005 89998
100607 53022 183371 183371 169103 196799 169103 124772 147880 26428 170167 190479 15965 54391 147880 140551 140551 29642 62470 96866 96866 82249 82249 193806 42705 42705 15965 196799 4024 64683 97010 65309 44873 44873 66473 91671 11827 95138 174373 92902 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #43:

score: 15
Accepted
time: 45ms
memory: 19140kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90020 89983
154132 38629 159093 21294 49364 194648 138336 73357 181249 181249 144114 10740 39136 157850 157850 94789 21231 21231 82421 107240 116957 53200 194648 159093 53200 152399 70510 82421 142696 45004 108803 10029 31475 75442 197118 10016 165345 12350 54095 538...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #44:

score: 15
Accepted
time: 48ms
memory: 19460kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89919 90081
195915 24754 195915 140362 92019 136846 164895 198178 174683 175824 157108 138231 164895 174683 123957 94083 88502 31548 88103 88103 27495 27495 135402 135402 88435 75838 104417 119814 134790 134790 45648 35319 61730 121149 50273 13234 50273 161687 21327 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #45:

score: 15
Accepted
time: 26ms
memory: 18972kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90055 89948
114975 75337 75337 70523 103043 114975 33199 187975 70523 183178 85171 60275 196848 60275 85171 196848 155916 70166 120244 81250 134114 1546 188258 188258 187975 112666 60421 175798 1546 129018 182906 49472 182498 140754 134114 159077 175370 59019 34604 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #46:

score: 15
Accepted
time: 34ms
memory: 18896kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90056 89950
117199 172251 50459 172251 149007 66312 74325 42695 118673 42695 70441 118673 669 67727 78566 152729 78566 152729 182326 196534 122332 87273 57192 57192 24200 11101 66697 89555 196534 49119 172964 101828 101828 105951 167051 167051 47153 47153 42386 16299...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #47:

score: 15
Accepted
time: 34ms
memory: 19276kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89964 90045
190218 66592 114072 107474 199740 3316 199740 81097 135927 70590 184171 9859 80274 135927 55788 74491 80274 55788 165954 64819 38295 50975 163061 91261 13937 13937 183198 117872 90236 175088 98316 46984 98316 175088 197409 20546 183198 13949 4140 101248 9...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #48:

score: 15
Accepted
time: 40ms
memory: 19148kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90060 89952
117534 126151 171390 74901 149403 85724 18852 90101 123621 123621 116880 127408 116880 110406 108028 172028 35796 107356 74852 107356 54757 17317 22444 90101 20845 157585 17317 74852 51601 157585 23294 173546 23294 173546 172028 189242 152682 180409 15268...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #49:

score: 15
Accepted
time: 31ms
memory: 18944kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89974 90041
89113 54902 117054 142456 117054 94040 46384 43180 142456 102961 89113 81431 107469 47979 134176 94040 36995 21035 102961 81431 43180 75792 45188 66676 17328 198799 66676 154650 134645 139320 198799 134645 89388 64224 55019 154650 55019 86177 26088 89388 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #50:

score: 15
Accepted
time: 28ms
memory: 19000kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89982 90036
121450 121450 19602 85005 85005 51972 154248 51972 10127 170440 7088 43195 4295 4295 53337 92096 156383 156383 12024 53337 164801 38118 194168 26557 10127 98630 38118 73354 158982 37020 73354 140105 56745 56745 185304 98630 115959 26557 694 92788 139789 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #51:

score: 15
Accepted
time: 44ms
memory: 19516kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90004 90017
111549 111549 15324 15324 16221 16221 152632 85199 41998 41998 37895 105597 83527 170655 170655 83527 85199 92199 121954 180005 16408 134338 67861 67861 26079 142984 34536 151545 46808 19014 46808 132925 27264 132925 167464 4316 26079 130066 120789 130066...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60007
111549 15324 16221 152632 85199 41998 105597 83527 170655 92199 121954 16408 134338 67861 26079 142984 34536 151545 46808 132925 27264 167464 4316 130066 120789 73270 152205 62467 149252 121 19014 104824 155648 55797 32479 23798 182208 17319 137944 43826 168...

result:

ok 

Test #52:

score: 15
Accepted
time: 51ms
memory: 19144kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90028 89996
101041 101041 48358 48358 187673 141561 141561 159356 50443 189231 75435 77151 83383 77151 160290 50443 159356 13394 34476 125674 193194 160290 72503 155236 125674 87722 171076 33342 118203 98064 22077 57303 57303 356 152772 152772 69861 100585 31353 7839...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60008
101041 48358 187673 141561 159356 189231 75435 77151 160290 50443 13394 125674 193194 155236 171076 33342 98064 57303 152772 69861 100585 31353 46917 129733 98963 161835 158123 38127 151845 131710 88680 195367 157082 99332 101068 41398 28394 178020 80565 871...

result:

ok 

Test #53:

score: 15
Accepted
time: 33ms
memory: 18988kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90022 90005
27763 13290 13290 113296 175071 65828 98793 161503 53393 27763 160520 171285 178056 36853 53012 155542 77706 155542 52572 178056 51832 43820 90975 107999 43820 97189 107999 132449 197420 43671 97189 197420 69470 139675 56541 133473 56541 59078 139675 5907...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #54:

score: 15
Accepted
time: 52ms
memory: 19632kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89998 90002
89036 47733 141844 141844 138691 96266 96266 156140 196507 97250 89036 56696 112233 92042 2374 135629 158251 158251 162073 3968 21618 178397 101580 1098 187136 183882 156455 66552 193415 171473 171473 135629 46913 69613 122229 84072 112077 128646 79288 74...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
141844 96266 156140 89036 158251 101580 193415 171473 135629 69613 122229 130452 140295 86177 79288 36023 160754 47733 185508 141606 119096 18029 191875 172064 47529 183169 124835 117106 170803 31606 162782 42654 83667 126323 83198 60871 18836 73814 156262 1...

result:

ok 

Test #55:

score: 15
Accepted
time: 54ms
memory: 19372kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89966 90034
165094 171056 171056 96716 8224 3465 36936 39385 120993 75559 183589 24993 102790 102865 24993 131545 172935 136074 166132 136074 52543 176323 20911 111045 52543 172935 43236 141244 12515 106496 191278 22634 161789 102883 113877 9385 112068 111045 63977 8...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
171056 96716 3465 183589 24993 136074 52543 172935 141244 191278 22634 102883 9385 111045 174675 173257 36936 199434 112068 89610 20911 4114 86489 81553 43428 75545 39128 77981 45654 145995 157451 127432 137855 83484 105320 137116 620 12515 503 177963 90694 ...

result:

ok 

Test #56:

score: 15
Accepted
time: 58ms
memory: 19500kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90011 89989
137217 108044 88172 137217 11082 197929 112489 16005 199815 147775 31877 50715 152743 50715 138318 21299 150447 58012 63801 27529 141769 104182 128141 155868 114971 3795 114971 37663 99156 74852 196514 132032 196514 102614 99156 177099 32434 102614 132032...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60000
137217 88172 11082 112489 147775 31877 152743 50715 21299 58012 141769 155868 114971 37663 196514 99156 177099 102614 132032 173032 129488 52942 87401 162937 10034 184048 161039 153621 41771 36383 125668 98089 39678 140478 156699 150903 105326 131283 115804 ...

result:

ok 

Test #57:

score: 15
Accepted
time: 51ms
memory: 19424kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89945 90058
56444 87099 111223 85491 21555 114608 137097 86265 192143 86265 88535 138643 79166 29968 53339 149640 6401 115771 63534 43119 71825 10797 78808 171434 119552 80820 134477 31420 146895 36623 181548 99374 179091 199071 28512 199071 27330 176170 118563 23977...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
137097 86265 138643 115771 71825 171434 31420 36623 199071 179091 95741 144975 96011 99087 189414 26337 71584 114608 43317 134161 101318 10797 176441 22895 198341 21555 56444 8016 78534 147338 123635 193227 146289 24516 144026 118563 127134 134760 187290 544...

result:

ok 

Test #58:

score: 15
Accepted
time: 52ms
memory: 19436kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89985 90018
180522 138554 169916 124240 759 84912 142517 79560 142517 28685 125206 30168 26338 158523 48199 72025 110577 178749 48199 198872 158523 198872 199275 25786 16023 93812 90837 115365 173064 183381 82633 33457 3167 169678 170184 148272 63652 49521 154174 598...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
124240 142517 28685 30168 158523 48199 198872 25786 93812 173064 33457 169678 148272 63652 59818 188601 2724 90837 81718 189254 12932 129574 128583 199450 26578 194294 75228 174885 151323 116356 85283 82983 32850 275 148124 30252 140954 47521 3167 19754 1464...

result:

ok 

Test #59:

score: 15
Accepted
time: 49ms
memory: 19140kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90048 89955
72744 131261 25990 118930 11606 97216 138538 196377 46690 72589 196377 76677 17092 51178 167129 89917 195856 4290 33990 182686 4290 158630 33990 148546 11893 83817 19653 155893 68113 88852 164436 157279 93615 89772 118363 167435 194229 162090 163110 16311...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
60001
118930 97216 196377 17092 4290 33990 11893 83817 68113 88852 157279 93615 167435 194229 162090 163110 70942 20337 164252 185039 196735 157639 163825 130023 89224 57669 49103 168034 8738 47746 136582 36267 161901 79243 168909 120949 89772 69163 111612 129960 ...

result:

ok 

Test #60:

score: 15
Accepted
time: 17ms
memory: 15548kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100 100
33284 33284 199014 105027 157250 5352 79600 96019 184037 142586 11096 11096 129672 173443 38583 93915 54707 36186 50155 50155 127736 55777 100235 130122 130122 25629 25629 59594 59594 134243 155735 155735 58819 36364 22250 160434 72389 125637 83523 83523 1295...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
50
33284 199014 157250 5352 79600 142586 11096 129672 173443 38583 54707 36186 127736 55777 25629 59594 155735 36364 72389 125637 83523 129514 128803 77723 43869 12785 72897 66046 113225 147799 136875 39314 121116 159237 196481 177451 32757 124777 101141 180528 17...

result:

ok 

Test #61:

score: 15
Accepted
time: 13ms
memory: 15544kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100 80
9794 9794 9794 72334 72334 72334 28446 28446 28446 27379 27379 27379 194954 194954 83725 83725 56260 56260 125197 125197 139191 139191 185622 185622 87842 87842 184678 184678 164760 114963 14065 36044 37566 37566 5986 5986 157677 157677 107143 136494 136494 54...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
46
37566 5986 157677 136494 54000 115133 125002 40031 69296 25734 48024 114650 166086 155967 173501 28676 159853 124944 36556 19748 25689 72386 94635 38499 118103 1523 194532 97302 130373 6286 74653 80743 190475 87692 33228 50521 175943 19911 17090 91834 196659 77...

result:

ok 

Test #62:

score: 15
Accepted
time: 13ms
memory: 15572kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
555 888
5746 171893 69226 115060 56587 49569 180390 80817 13222 175313 166180 199786 22095 175068 97552 171986 82617 36458 12359 59981 166326 75636 2407 157550 24710 80766 165851 173533 140015 91110 78690 145564 96028 18550 196299 137498 56545 186661 164405 87903 121...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
305
5746 171893 69226 115060 56587 49569 180390 80817 13222 175313 166180 199786 22095 175068 97552 171986 82617 36458 12359 59981 166326 75636 2407 157550 24710 80766 165851 173533 140015 91110 78690 145564 96028 18550 196299 137498 56545 186661 164405 87903 1210...

result:

ok 

Test #63:

score: 15
Accepted
time: 12ms
memory: 15624kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
1234 4321
105877 116298 107406 73213 101175 101175 107504 51436 91546 91546 28948 182426 13191 193019 123558 2468 146231 146231 121985 168359 156046 71246 184709 183121 90722 178390 84421 158166 4206 144380 127649 20027 180587 80183 80183 80183 161342 97363 97363 121...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
792
116298 107406 101175 107504 51436 91546 182426 13191 123558 2468 168359 156046 71246 183121 90722 178390 84421 158166 4206 144380 180587 97363 121447 185219 127359 83853 7305 107594 136411 21566 118265 148334 99587 190640 81303 178740 88172 134340 168812 21771...

result:

ok 

Test #64:

score: 15
Accepted
time: 36ms
memory: 18000kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
54321 65432
110523 110523 110523 45777 45777 45777 157379 157379 157379 11252 11252 11252 64784 64784 64784 80570 80570 80570 108098 108098 108098 82875 82875 82875 121691 121691 121691 64941 64941 64941 196859 196859 196859 121767 121767 121767 49334 49334 49334 111...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
24775
169052 156487 135925 93250 181641 9672 10605 58546 88438 104184 146381 180898 132939 106183 24701 103631 184057 83530 194895 52052 70467 679 111362 131343 115377 132115 192586 152972 57551 131349 193444 140760 74703 42887 3312 170388 106545 98483 166666 4968...

result:

ok 

Test #65:

score: 15
Accepted
time: 49ms
memory: 20200kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
87510 1956 1956 144327 144327 109240 177339 94671 94671 93249 84772 127809 77471 77471 109351 75318 21000 21000 183455 74970 74970 8901 22082 197043 149549 10621 191611 191611 191611 88171 2060 144015 144015 132603 159785 159785 119832 29426 166266 1662...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
41793
1956 177339 94671 84772 127809 77471 109351 21000 183455 74970 8901 22082 149549 88171 2060 144015 132603 159785 119832 29426 45694 62432 184044 184101 30293 17710 30427 192793 192673 165613 116471 15719 83754 171667 40727 112096 2383 8906 158041 87393 12893...

result:

ok 

Test #66:

score: 15
Accepted
time: 52ms
memory: 20180kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
9743 9743 9743 88969 88969 88969 58208 58208 58208 195159 195159 195159 199307 199307 199307 73425 73425 73425 155676 155676 155676 2911 2911 2911 31440 31440 31440 41774 41774 41774 192333 192333 192333 116954 116954 116954 154641 154641 154641 174206 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
41679
48587 190502 78517 111787 162035 9391 156781 18508 150236 56171 141555 41692 34917 188802 191784 153414 18654 103528 97768 85529 48075 183261 53882 56543 66719 132481 154595 133166 82048 78340 30466 64844 3416 149545 131461 164645 176170 4614 167558 107842 2...

result:

ok 

Test #67:

score: 15
Accepted
time: 46ms
memory: 20280kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
12653 92477 173954 33450 122567 18515 35201 129538 148110 48545 80886 131977 178819 150922 130521 177415 30151 195501 184688 59319 29395 89875 77344 144161 151009 52698 20658 92030 78200 112492 82527 91012 104010 150050 141116 46543 119332 42552 123587 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
41847
12653 92477 173954 33450 122567 18515 35201 129538 148110 48545 80886 131977 178819 150922 130521 177415 30151 195501 184688 59319 29395 89875 77344 144161 151009 52698 20658 92030 78200 112492 82527 91012 104010 150050 141116 46543 119332 42552 123587 66837...

result:

ok 

Test #68:

score: 15
Accepted
time: 42ms
memory: 18668kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79033 79366
66534 9757 176662 84211 83487 176662 84211 142984 93418 93418 146577 96159 191701 146577 96159 105351 165140 54539 124569 105351 105351 187177 165140 119131 119131 119131 15727 40820 40820 15727 75862 118045 75862 115442 10325 157261 11275 174999 135965 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
23102
66534 9757 83487 84211 142984 146577 96159 124569 187177 40820 15727 118045 115442 157261 135965 9468 166908 62835 94027 109936 3954 103670 157971 100771 142390 63989 130478 2462 163357 192568 130115 148644 159698 183745 141665 21652 77687 31371 137404 14463...

result:

ok 

Test #69:

score: 15
Accepted
time: 3ms
memory: 11088kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
4 5
0 1 2 0
2 1 2 0 1

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #70:

score: 15
Accepted
time: 7ms
memory: 15836kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
5 4
1 0 2 1 2
0 2 1 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Subtask #3:

score: 10
Accepted

Test #71:

score: 10
Accepted
time: 49ms
memory: 22268kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 0 1 1 1 0 1 0...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
85671
0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 1 1 1 1 1 0 1 0 0 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 0 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 0 0 1 1 0 1 1 1 0 1 0 0 1 ...

result:

ok 

Test #72:

score: 10
Accepted
time: 17ms
memory: 17408kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
1 0 1 0 1 0 0 1 0 1 0 0 0 1 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 1 1 1 1 1 1 0 1 1 1 0 1 1 0 1 0 1 0 1 1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 1 0 0 0 1 1 1 0 0 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 1 1 1 1 1 0 0 0...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #73:

score: 10
Accepted
time: 25ms
memory: 18996kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
50000 100000
1 1 1 1 1 0 1 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 1 1 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 1 0 1 1 0 1 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
38576
1 1 1 1 1 0 1 0 0 1 0 1 1 1 0 1 1 1 0 0 1 0 0 1 1 1 0 0 0 0 1 1 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 1 1 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 0 1 1 0 1 1 0 1 1 1 ...

result:

ok 

Test #74:

score: 10
Accepted
time: 8ms
memory: 16296kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
50000 100000
1 0 1 0 0 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 1 0 0 0 0 1 0 1 1 0 0 0 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #75:

score: 10
Accepted
time: 46ms
memory: 20420kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 70000
1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 0 1 1 1 1 0 0 1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 1 0 0 0 1 1 1 1 0 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 1 1 0 1 1 1 1 0 0 1 0 0 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
66273
1 1 1 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 1 0 0 1 1 1 0 0 0 1 1 1 0 1 1 0 1 0 1 1 0 1 1 1 0 1 1 1 1 0 0 1 0 1 0 0 0 0 1 1 0 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 1 0 0 0 1 1 1 1 0 1 0 0 1 1 1 0 0 1 0 0 0 0 0 0 1 1 0 1 1 1 1 0 0 1 0 0 0 0 1 ...

result:

ok 

Test #76:

score: 10
Accepted
time: 7ms
memory: 16480kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
70000 100000
0 1 1 0 0 0 1 0 1 1 1 0 0 0 1 1 1 1 1 1 0 1 1 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 0 0 0 1 1 0 1 0 1 1 1 0 1 0 0 1 1 0 0 0 0 1 0 1 1 1 0 0 1 0 0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 1 1 1 0 1 0 1 1 1 0 0 0 1 0 1 1 1 1 1 0 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #77:

score: 10
Accepted
time: 9ms
memory: 17188kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 99999
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #78:

score: 10
Accepted
time: 30ms
memory: 21420kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #79:

score: 10
Accepted
time: 34ms
memory: 22388kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #80:

score: 10
Accepted
time: 7ms
memory: 17188kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #81:

score: 10
Accepted
time: 35ms
memory: 22380kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
99999 99999
0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #82:

score: 10
Accepted
time: 52ms
memory: 22568kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 0 1 1 1 0 1 0 0 1 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 1 0 0 1 0 1 0 0 0 1 0...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
100000
0 0 1 1 1 1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 0 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 0 1 1 1 0 1 0 0 1 1 1 0 0 1 1 0 0 1 1 0 1 1 0 0 1 0 0 1 0 0 1 1 1 0 0 1 0 1 0 0 0 1 0 1 1...

result:

ok 

Test #83:

score: 10
Accepted
time: 48ms
memory: 22396kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 99999
1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 0 1 1 1 0 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
99999
1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 0 1 1 0 0 1 1 1 0 1 1 1 0 0 1 1 1 1 1 0 1 0 1 1 1 0 1 0 0 1 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 0 1 1 0 0 ...

result:

ok 

Test #84:

score: 10
Accepted
time: 35ms
memory: 20884kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
0 0 1 1 0 1 1 1 1 1 0 0 1 0 0 0 1 0 0 0 1 0 0 1 1 1 0 0 0 0 0 0 0 0 1 0 1 1 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 1 1 0 0 0 0 1 0 1 1 0 1 1 1 1 1 1 0 0 0 1 0 0 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 0 0 1 1 0 0 1 1 1 0 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 0 1 1 1 0 1 0 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
50097
0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #85:

score: 10
Accepted
time: 41ms
memory: 20632kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 90010
1 1 1 0 1 1 1 0 0 1 1 0 1 1 0 0 1 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 0 0 1 1 1 0 0 1 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 1 0 0 0 0 1 0 0 1 0 1 1 0 0 1 1 0 0 1 1 1 0 1 1 1 0 1 0 1 0 1 1 0 0 1 1 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 1 0 1 0 1 1 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
50024
1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 

Test #86:

score: 10
Accepted
time: 34ms
memory: 22008kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 90010
0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 1 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 0 1 0 1 0 1 1 0 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
90010
0 0 1 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 0 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 1 0 1 1 0 0 1 1 0 0 ...

result:

ok 

Test #87:

score: 10
Accepted
time: 25ms
memory: 17656kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10010 100000
0 0 0 0 1 0 1 1 1 0 1 1 0 0 0 1 0 1 0 0 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 0 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
10010
0 0 0 0 1 0 1 1 1 0 1 1 0 0 0 1 0 1 0 0 1 1 1 0 1 1 0 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 0 0 1 ...

result:

ok 

Test #88:

score: 10
Accepted
time: 7ms
memory: 15540kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
5 5
1 0 1 1 0
0 0 1 1 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
4
0 1 1 0

result:

ok 

Test #89:

score: 10
Accepted
time: 7ms
memory: 15528kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
5 5
0 1 1 0 1
0 1 1 0 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
4
0 1 1 0

result:

ok 

Test #90:

score: 10
Accepted
time: 14ms
memory: 15536kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
5 5
0 1 1 1 0
0 1 0 1 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
4
0 1 1 0

result:

ok 

Test #91:

score: 10
Accepted
time: 13ms
memory: 15532kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
12 12
0 0 1 1 0 0 0 1 0 1 0 1
0 0 1 1 1 1 1 1 0 1 0 1

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
9
0 0 1 1 1 0 1 0 1

result:

ok 

Test #92:

score: 10
Accepted
time: 8ms
memory: 15520kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
12 12
0 0 1 1 0 0 0 1 0 1 0 1
0 0 1 1 1 0 1 1 0 1 0 1

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
10
0 0 1 1 0 1 0 1 0 1

result:

ok 

Test #93:

score: 10
Accepted
time: 0ms
memory: 11128kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3 3
1 0 1
0 1 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #94:

score: 10
Accepted
time: 0ms
memory: 11256kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
7 7
1 1 1 0 1 1 1
0 0 0 1 0 0 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #95:

score: 10
Accepted
time: 3ms
memory: 14932kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
4 4
0 0 1 0
1 0 0 1

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #96:

score: 10
Accepted
time: 0ms
memory: 11328kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
4 4
1 0 0 1
0 1 0 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Subtask #4:

score: 16
Accepted

Test #97:

score: 16
Accepted
time: 18ms
memory: 17036kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
20000 30000
110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
20000
110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955 110955...

result:

ok 

Test #98:

score: 16
Accepted
time: 47ms
memory: 22188kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
99999 88888
22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 224...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
88886
22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 22478 ...

result:

ok 

Test #99:

score: 16
Accepted
time: 33ms
memory: 22156kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
166304 166304 166304 166304 166304 166304 166304 166304 102708 11497 11497 11497 11497 11497 11497 11497 11497 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 125776 125776 125776 125776 125776 125776 125776 125...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
85709
166304 166304 166304 166304 166304 166304 166304 102708 11497 11497 11497 11497 11497 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 17510 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 125776 12...

result:

ok 

Test #100:

score: 16
Accepted
time: 43ms
memory: 22424kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
95801
117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117 117117...

result:

ok 

Test #101:

score: 16
Accepted
time: 43ms
memory: 22372kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
98803
127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501 127501...

result:

ok 

Test #102:

score: 16
Accepted
time: 51ms
memory: 22380kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
99078
116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473 116473...

result:

ok 

Test #103:

score: 16
Accepted
time: 56ms
memory: 19508kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90001 89999
171539 66534 9757 176662 84211 83487 129394 86197 172362 142984 93418 146577 96159 191701 83516 196081 37110 105351 165140 54539 124569 187177 24718 194979 119131 15727 40820 31718 13095 147840 76889 199389 75862 118045 115442 10325 157261 11275 83362 174...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
69029
66534 9757 176662 84211 83487 129394 142984 93418 146577 83516 196081 37110 105351 165140 124569 187177 24718 194979 119131 15727 40820 31718 13095 147840 199389 75862 118045 115442 10325 157261 11275 83362 174999 135965 170148 9468 78567 123417 96834 166908...

result:

ok 

Test #104:

score: 16
Accepted
time: 51ms
memory: 19888kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
88483 88489
171539 66534 9757 9757 176662 66534 176662 66534 84211 171539 83487 83487 129394 83487 83487 129394 129394 129394 86197 171539 142984 142984 93418 142984 146577 93418 96159 146577 171539 191701 191701 83516 83516 196081 83516 37110 83516 191701 171539 105...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
49991
66534 9757 9757 84211 171539 83487 129394 129394 86197 171539 142984 93418 93418 96159 171539 196081 37110 83516 171539 165140 105351 105351 171539 24718 24718 187177 24718 187177 171539 15727 40820 15727 31718 13095 171539 76889 147840 199389 171539 118045 ...

result:

ok 

Test #105:

score: 16
Accepted
time: 29ms
memory: 19220kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
25795 25795 25795 25795 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 143131 14313...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
40
25795 25795 25795 25795 143131 128849 128849 143131 143131 143131 128849 143131 128849 143131 143131 128849 143131 128849 128849 128849 128849 143131 128849 128849 143131 143131 128849 143131 143131 128849 25795 143131 128849 143131 128849 143131 25795 143131 2...

result:

ok 

Test #106:

score: 16
Accepted
time: 18ms
memory: 19096kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
131962 163588 163588 130741 139327 130741 130741 130741 130741 130741 130741 130741 130741 130741 130741 139327 130741 130741 130741 130741 139327 163588 163588 163588 139327 139327 130741 139327 139327 139327 139327 130741 130741 130741 139327 130741 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
24
131962 163588 163588 130741 130741 130741 139327 130741 139327 163588 163588 163588 139327 130741 130741 163588 163588 130741 130741 163588 163588 130741 163588 163588

result:

ok 

Test #107:

score: 16
Accepted
time: 28ms
memory: 18972kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
57218 127363 57218 159037 127363 159037 48613 48613 121706 48613 121706 121706 48613 121706 48613 48613 121706 121706 121706 121706 48613 121706 48613 48613 121706 121706 48613 48613 48613 121706 121706 48613 48613 48613 121706 48613 121706 48613 48613 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
24
57218 127363 57218 159037 127363 159037 48613 57218 159037 57218 57218 127363 127363 159037 159037 57218 57218 57218 57218 48613 121706 121706 57218 121706

result:

ok 

Test #108:

score: 16
Accepted
time: 23ms
memory: 19092kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
58828 58828 141287 58828 42978 42978 58828 42978 58828 141287 42978 58828 141287 42978 141287 141287 141287 58828 141287 42978 141287 42978 58828 141287 141287 58828 42978 3496 3496 58828 58828 42978 42978 141287 58828 42978 42978 58828 58828 141287 588...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
24
42978 42978 58828 42978 58828 58828 42978 58828 58828 141287 42978 3496 3496 141287 58828 42978 42978 58828 58828 141287 58828 42978 42978 3496

result:

ok 

Test #109:

score: 16
Accepted
time: 8ms
memory: 15656kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
171781 196644 56899 56899 196644 196644 171781 196644 56899 196644 196644 171781 196644 171781 56899 171781 56899 56899 56899 56899 171781 56899 56899 56899 171781 196644 196644 196644 196644 196644 196644 196644 196644 196644 196644 196644 196644 196644 19...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
50
171781 196644 56899 56899 196644 196644 171781 196644 56899 196644 196644 171781 196644 171781 56899 171781 56899 56899 56899 56899 171781 56899 56899 56899 171781 196644 171781 171781 171781 56899 56899 171781 56899 171781 56899 171781 56899 56899 56899 171781...

result:

ok 

Test #110:

score: 16
Accepted
time: 9ms
memory: 15948kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
198418 107700 107700 94006 94006 198418 94006 107700 94006 107700 198418 198418 198418 94006 94006 107700 107700 94006 107700 94006 198418 198418 94006 107700 94006 94006 94006 107700 107700 94006 107700 94006 94006 94006 107700 94006 107700 107700 94006 94...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30
198418 107700 107700 94006 94006 198418 94006 107700 94006 107700 198418 198418 198418 94006 107700 94006 94006 198418 198418 94006 107700 94006 94006 94006 94006 198418 198418 165264 94006 107700

result:

ok 

Test #111:

score: 16
Accepted
time: 15ms
memory: 15668kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
32620 177199 20797 151285 20797 151285 151285 151285 20797 40009 20797 20797 40009 40009 20797 20797 20797 20797 20797 20797 20797 40009 40009 40009 40009 40009 20797 40009 40009 40009 20797 20797 40009 20797 40009 40009 20797 20797 40009 20797 20797 20797 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30
32620 177199 20797 151285 20797 151285 151285 151285 20797 40009 20797 20797 40009 20797 20797 32620 151285 151285 151285 151285 32620 177199 32620 177199 151285 177199 177199 151285 151285 177199

result:

ok 

Test #112:

score: 16
Accepted
time: 9ms
memory: 15660kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
113512 26708 26708 113512 113512 26708 26708 26708 26708 26708 135675 135675 188843 188843 38854 38854 70863 38854 70863 70863 70863 70863 38854 70863 70863 188843 70863 188843 38854 70863 188843 188843 38854 70863 38854 38854 38854 38854 188843 188843 7086...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30
113512 26708 26708 113512 113512 26708 26708 26708 26708 26708 135675 135675 70863 188843 26708 26708 113512 26708 26708 135675 135675 26708 26708 135675 26708 26708 135675 113512 70863 70863

result:

ok 

Test #113:

score: 16
Accepted
time: 39ms
memory: 18564kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79954 80046
193839 42571 143135 58797 127114 152014 121576 103593 44671 49674 120539 118872 112568 191382 76408 127114 191722 22015 169752 15042 95620 159279 185815 61483 21390 127114 54750 54750 149559 126288 54750 194529 39399 30493 195178 95703 155965 146569 11623...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
40000
103593 191382 127114 54750 155965 82670 146569 42571 120539 24162 77964 195178 89002 76408 196879 9396 154489 183912 152014 116718 43540 121576 27217 85811 166052 10992 182839 90373 109905 30718 122589 171998 63151 93958 173218 142855 94976 84158 165942 9615...

result:

ok 

Test #114:

score: 16
Accepted
time: 43ms
memory: 18536kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79692 80308
184417 139038 102077 93874 141204 101441 57932 56930 101441 139722 167693 141204 101441 141204 55067 139038 55067 55067 179373 55074 93874 139038 93874 62399 88433 168105 14512 111153 463 184417 136760 184417 111433 136760 67500 9399 136760 176321 167693 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
40000
102077 101441 141204 139038 55067 93874 168105 184417 136760 167693 114206 176780 3276 191302 193452 140022 138095 40789 14512 24293 173639 109359 14883 67154 83691 641 2633 2685 84742 21821 154045 463 93736 152689 139722 161767 88433 119867 195376 12331 149...

result:

ok 

Test #115:

score: 16
Accepted
time: 42ms
memory: 18592kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80144 79856
146013 94851 129493 66187 45006 107425 66187 22491 172841 117814 22491 90777 22491 37122 42915 45399 130433 66187 130433 160403 165473 130433 160403 74513 81623 27611 80567 165473 165473 139146 121857 160403 56775 56775 79680 175333 132330 98429 54539 319...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
40000
129493 66187 22491 42915 130433 160403 74513 165473 121857 56775 175333 98429 117814 33614 29662 74843 34044 34367 119627 143308 178085 19092 8425 151715 49307 22288 25352 10582 144322 165452 151314 155918 16415 108989 133916 26974 81941 194760 148815 163466...

result:

ok 

Test #116:

score: 16
Accepted
time: 46ms
memory: 18912kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87902 87098
150752 97721 108683 139433 127372 108683 94911 190291 78595 34654 106948 108683 108683 183204 692 66444 173851 66911 73467 692 692 115243 93379 132762 692 190890 151131 66911 190890 190890 190890 2215 185526 169850 66444 141576 66444 157204 5821 179382 66...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
35000
190291 108683 73467 692 190890 66444 88269 127774 147807 148822 102693 55422 31745 192945 7341 6266 113395 46997 33369 115608 142434 11560 68677 14004 182014 104851 174812 65652 118581 22973 185526 64694 43514 105547 139433 161367 157204 17091 188266 187205 ...

result:

ok 

Test #117:

score: 16
Accepted
time: 46ms
memory: 19108kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87566 87434
185318 77595 139695 56859 147798 147798 132223 95638 125215 96795 1024 66946 18446 92987 89469 147798 112446 147798 86073 4576 36873 57932 4576 4576 4576 67383 1024 57932 127685 40041 129036 129036 101031 129036 135345 101361 9694 21483 150591 119401 1194...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
35000
139695 147798 92987 112446 4576 127685 129036 21483 119401 150591 57932 1024 67383 18742 18026 101031 75651 95278 78215 14487 35078 52118 66334 152528 135345 101361 96795 108627 99424 28991 153675 146773 69807 86438 194466 48055 130374 167494 81503 95006 115...

result:

ok 

Test #118:

score: 16
Accepted
time: 44ms
memory: 18900kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87911 87089
97159 64184 72271 150120 93476 113402 185541 134885 127186 72313 131327 127186 127186 131327 127186 131327 175640 18000 131327 34039 172401 54065 183967 183967 183967 78438 78438 79740 177022 177022 71524 78438 78438 54065 54065 156682 183967 54065 188233...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
35000
64184 72271 93476 185541 72313 127186 131327 172401 183967 78438 54065 188233 50633 190420 198418 195139 177022 5140 120342 82427 91141 30754 156682 50348 142740 199189 139969 89093 195678 25439 57159 127678 151083 34521 189343 3959 1597 36543 74886 146105 7...

result:

ok 

Test #119:

score: 16
Accepted
time: 43ms
memory: 18860kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90464 89536
96211 136384 31978 103884 34204 133198 110171 103884 103884 103884 103884 142782 96814 147152 173813 38603 144217 142782 61894 89274 7601 137377 167008 7792 32526 43551 86069 142782 91662 142782 144217 94940 142782 32465 54206 54206 13299 54206 143332 342...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30000
96211 103884 89274 7792 86069 142782 54206 4493 65888 164888 12077 110563 128230 38603 8500 199725 121203 97998 139281 165617 117005 199954 78017 2179 89507 66244 136384 117734 81418 160644 86864 147468 110171 189335 56794 31978 175772 9945 146650 174964 129...

result:

ok 

Test #120:

score: 16
Accepted
time: 43ms
memory: 18852kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89916 90084
73582 159532 73582 31080 189757 147994 31080 176510 176510 3319 66018 176510 104078 12479 31080 176510 176510 80990 73582 168732 30713 190944 10318 73582 74741 108050 73582 23934 64555 75901 44577 136087 160561 44577 185171 91462 87032 31080 131899 29030 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30000
31080 176510 168732 73582 64555 91462 30527 168769 44577 199984 154874 142469 52622 142808 75602 24749 126407 154191 36504 26738 38929 79528 48540 63550 125282 25761 131899 26981 166716 56164 87466 55596 81084 25356 384 44699 68440 61817 125463 44650 118311 ...

result:

ok 

Test #121:

score: 16
Accepted
time: 39ms
memory: 18868kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89828 90172
33450 65276 132387 132387 132387 106064 132387 170671 65276 84567 132387 106064 50765 192185 161965 41290 50765 161965 104047 77772 65861 195095 181427 50765 104047 161965 180186 41290 104047 77772 77772 33450 50765 77772 77772 104047 41290 50765 181968 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
30000
132387 192185 104047 77772 50765 161965 65276 181968 41290 195095 135626 136457 178970 114763 33450 154110 1976 195279 65317 65861 16656 130094 125926 12862 40714 172790 34370 77933 84021 106064 51093 23500 135711 107638 1141 96253 193894 173626 54069 122078...

result:

ok 

Test #122:

score: 16
Accepted
time: 8ms
memory: 17568kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 341
89810 164928 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193694 148836 148125 164928 23274 103601 135457 135457 148125 164928 71164 26231 89810 164928 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
315
71164 26231 89810 164928 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193694 148836 148125 164928 23274 103601 135457 135457 148125 164928 38545 35326 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193694 1...

result:

ok 

Test #123:

score: 16
Accepted
time: 47ms
memory: 21524kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
96980 100000
54972 48765 98604 7901 183263 75709 96565 170833 28887 89373 159757 89182 145742 4860 114599 155396 138352 193471 111168 48765 55459 181999 108161 149921 74193 193113 78578 71248 113569 98541 74888 82356 128623 89524 95903 123818 68344 183263 98604 15539...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
96602
54972 48765 98604 7901 183263 75709 96565 170833 28887 89373 159757 89182 145742 4860 114599 155396 138352 193471 111168 48765 55459 181999 108161 149921 74193 193113 78578 71248 113569 98541 74888 82356 128623 89524 95903 123818 68344 183263 98604 155396 93...

result:

ok 

Test #124:

score: 16
Accepted
time: 48ms
memory: 21820kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 83647
101651 116559 24710 134077 101923 185459 3904 112960 52975 60555 33429 117817 27691 86017 187452 34475 131041 10640 127463 115246 65001 169808 119112 91872 134930 85336 105193 124252 153146 6364 58449 27224 98598 60823 16273 27691 5323 163699 25554 11731...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
83184
181114 71298 102186 101651 116559 24710 134077 101923 185459 3904 112960 52975 60555 33429 117817 27691 86017 187452 34475 131041 10640 127463 115246 65001 169808 119112 91872 134930 85336 105193 124252 153146 6364 58449 27224 98598 60823 16273 27691 5323 16...

result:

ok 

Test #125:

score: 16
Accepted
time: 49ms
memory: 21664kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
99851 100000
42238 62081 84960 18236 174201 12623 148768 11563 126738 179755 62749 38395 174931 189180 82425 84143 185731 103010 136190 156069 114110 131142 129667 31679 31773 22457 12725 96469 79781 192896 151014 179758 193178 18113 84143 56068 143798 55209 56821 15...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
98670
122081 76356 66752 186522 155760 62081 115486 173980 16120 36014 42238 62081 84960 18236 174201 12623 148768 11563 126738 179755 62749 38395 174931 189180 82425 84143 185731 103010 136190 156069 114110 131142 129667 31679 31773 22457 12725 96469 79781 192896...

result:

ok 

Test #126:

score: 16
Accepted
time: 47ms
memory: 20980kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
92173 100000
22914 84312 162365 39548 151543 67334 120655 92453 131709 5855 189445 153366 3107 151543 7511 126675 123347 141497 198684 105458 181709 26286 17535 165898 132129 52878 85604 127487 183190 85032 124236 33762 179905 182591 64527 105564 70277 58463 167245 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
88691
188078 71618 136541 10200 109763 58149 177116 91819 30588 5037 15499 81599 114863 60863 196216 186954 58463 50239 194900 6587 165665 118465 107728 15492 22119 98069 8674 198483 67213 167007 11770 7938 40335 13116 58974 143709 172631 54893 97062 63961 135470 ...

result:

ok 

Test #127:

score: 16
Accepted
time: 52ms
memory: 20576kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
85883 100000
23669 177064 78856 189594 56258 183497 30018 78801 121419 162357 20809 147423 84221 96237 186740 169563 177983 88479 65929 16520 73691 26112 14684 18807 158512 89952 136495 23156 67361 47297 185141 94218 95449 194729 145347 121420 163478 168849 135746 10...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
75475
172935 28147 53164 175866 140982 184525 38303 65245 72953 58935 197848 50217 107992 104981 63313 105962 83233 58287 19482 150099 66718 182540 6666 32019 52766 93128 188584 13623 33891 142118 163383 167238 125737 170925 144126 162095 101443 9073 32518 107986 ...

result:

ok 

Test #128:

score: 16
Accepted
time: 10ms
memory: 16408kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 341
174075 25403 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 37811 153241 25403 122384 29017 69510 69510 153241 25403 69099 39060 174075 25403 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 378...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
315
69099 39060 174075 25403 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 37811 153241 25403 122384 29017 69510 69510 153241 25403 156868 71772 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 37811...

result:

ok 

Test #129:

score: 16
Accepted
time: 11ms
memory: 16032kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2705
11519 155866 16264 160215 179631 26746 16264 26746 173866 88443 49726 11519 185695 73060 184729 26746 148338 116604 158814 140952 115247 140686 116604 144394 155866 5610 144394 177542 59189 127398 13760 121209 186078 58660 40829 6784 58972 130225 158814 131...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2654
11519 155866 16264 160215 179631 26746 16264 26746 173866 88443 49726 11519 185695 73060 184729 26746 148338 116604 158814 140952 115247 140686 116604 144394 155866 5610 144394 177542 59189 127398 13760 121209 186078 58660 40829 6784 58972 130225 158814 13168...

result:

ok 

Test #130:

score: 16
Accepted
time: 15ms
memory: 15732kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2721 3000
97629 91122 109136 16590 56123 141788 98270 20835 82655 148461 111609 80147 124546 180534 198131 157076 71457 82655 60035 171732 136477 84568 138220 195549 186714 34601 93697 140316 71683 12957 175692 80147 131700 180534 128480 132932 84568 82655 186714 118...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2570
58319 195549 149695 76269 168750 135601 34601 141544 58909 97629 91122 109136 16590 56123 141788 98270 20835 82655 148461 111609 80147 124546 180534 198131 157076 71457 82655 60035 171732 136477 84568 138220 195549 186714 34601 93697 140316 71683 12957 175692...

result:

ok 

Test #131:

score: 16
Accepted
time: 9ms
memory: 15728kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2132 3000
110098 143568 74549 3599 143568 51014 165139 105052 162732 175221 169364 111312 38443 103332 165827 141202 88385 198645 130345 141202 198531 35508 76293 168370 30975 162319 30526 101414 134826 88059 57942 46879 140071 189125 90004 37273 198531 68718 134741 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1737
199110 35988 16932 59173 113202 127471 101731 13033 34582 26994 31750 136332 40286 72862 45140 104315 13522 107175 7588 173946 134826 196602 75119 152579 78603 134435 84282 180666 150143 110098 143568 74549 3599 143568 51014 165139 105052 162732 175221 169364...

result:

ok 

Subtask #5:

score: 14
Accepted

Test #132:

score: 14
Accepted
time: 10ms
memory: 15704kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2800 2999
47 51 42 122 38 125 170 11 119 48 289 297 27 150 207 271 11 15 67 287 149 220 76 274 128 151 60 117 39 123 254 75 170 198 72 179 274 203 13 88 139 153 46 288 13 282 16 219 284 91 274 63 190 157 72 286 238 1 219 82 82 31 285 128 198 172 161 271 36 111 160 26...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2800
47 51 42 122 38 125 170 11 119 48 289 297 27 150 207 271 11 15 67 287 149 220 76 274 128 151 60 117 39 123 254 75 170 198 72 179 274 203 13 88 139 153 46 288 13 282 16 219 284 91 274 63 190 157 72 286 238 1 219 82 82 31 285 128 198 172 161 271 36 111 160 268 ...

result:

ok 

Test #133:

score: 14
Accepted
time: 18ms
memory: 16052kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2999 2999
161 462 13 332 346 475 194 20 36 323 39 256 432 278 259 480 97 464 354 69 375 262 103 321 65 264 31 471 439 314 169 353 165 346 444 148 337 326 359 397 396 489 391 74 168 209 496 183 481 9 485 46 174 410 158 363 179 56 118 294 350 290 154 74 95 202 490 62 3...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2700
161 462 13 332 346 475 194 20 36 323 39 256 432 278 259 480 97 464 354 69 375 262 103 321 65 264 31 471 439 314 169 353 165 346 444 148 337 326 359 397 396 489 391 74 168 209 496 183 481 9 485 46 174 410 158 363 179 56 118 294 350 290 154 74 95 202 490 62 397...

result:

ok 

Test #134:

score: 14
Accepted
time: 11ms
memory: 16040kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2999 2999
843 300 400 262 3 359 867 592 609 694 416 694 749 14 997 584 22 452 74 61 908 659 456 301 694 412 793 433 213 885 304 161 506 502 462 654 694 875 983 177 743 313 380 316 473 748 254 659 997 132 100 335 437 825 192 182 213 575 740 442 622 833 694 914 332 341...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2500
843 300 400 262 3 359 867 592 609 416 749 14 997 584 22 452 74 61 908 659 456 301 412 793 433 213 885 304 161 506 502 462 654 875 983 177 743 313 380 316 473 748 254 659 997 132 100 335 437 825 192 182 213 575 740 442 622 833 914 332 341 153 931 749 819 985 8...

result:

ok 

Test #135:

score: 14
Accepted
time: 7ms
memory: 15728kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2999 2999
863 1603 1420 106 1789 1690 1900 525 13 1749 747 263 87 0 1117 24 1318 1166 1233 749 337 1130 1780 1156 1918 1245 526 204 507 1440 728 1038 685 83 723 1929 1011 386 1132 1358 1022 1611 861 388 1168 1302 197 1958 1110 1573 1129 1808 357 1656 323 1670 799 983...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2300
863 1603 1420 106 1789 1690 13 1749 747 0 1117 24 1318 1166 749 337 1130 1780 1156 1918 1245 526 204 507 728 1038 685 83 723 1929 1011 386 1132 1358 1022 1611 388 1168 1302 197 1110 1573 1129 1808 357 1656 323 1670 641 1673 633 188 1557 1747 322 807 544 1118 ...

result:

ok 

Test #136:

score: 14
Accepted
time: 7ms
memory: 15160kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2801 2999
242 250 180 109 252 104 276 77 206 10 83 106 187 18 185 122 29 94 87 53 142 172 135 197 70 55 243 242 289 268 125 66 293 276 133 121 299 113 279 71 195 221 23 139 85 246 287 128 198 184 145 140 268 129 210 148 7 222 186 14 282 184 121 42 146 222 239 184 217...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #137:

score: 14
Accepted
time: 7ms
memory: 15008kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2735 2999
253 21 90 69 49 28 433 494 182 261 143 211 114 170 493 307 26 29 69 427 285 452 183 134 483 226 249 242 232 282 52 213 341 447 50 484 322 210 35 376 479 465 61 446 413 325 351 125 16 43 379 376 322 315 235 237 163 321 349 434 293 359 353 420 91 75 351 279 4...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #138:

score: 14
Accepted
time: 3ms
memory: 15064kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2999
591 907 168 874 286 701 505 67 3 774 970 900 276 273 932 966 575 637 123 936 659 508 323 408 154 503 432 580 83 464 925 763 161 202 370 635 80 538 809 880 307 306 90 575 681 146 3 775 835 457 782 151 81 832 749 163 915 987 396 666 680 440 9 617 888 926 655 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #139:

score: 14
Accepted
time: 11ms
memory: 15692kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2999 3000
1545 1894 1928 235 936 12 660 265 847 14 205 359 1987 1910 1597 1502 12 851 1341 1194 1183 1439 919 1297 548 148 200 558 869 1798 257 1380 1861 26 347 1625 437 1186 680 1854 1026 1514 659 1535 664 1756 1802 836 1431 591 563 1454 1556 943 1135 1007 1653 837 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #140:

score: 14
Accepted
time: 7ms
memory: 15328kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
2999 3000
8 316 154 236 55 79 393 161 423 280 218 263 356 384 444 400 420 16 104 322 118 172 39 447 20 312 170 327 86 464 441 363 434 312 80 58 425 56 180 114 354 421 24 84 336 306 472 61 368 365 331 11 214 12 333 2 454 201 303 86 328 143 31 203 321 52 70 408 241 204...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #141:

score: 14
Accepted
time: 10ms
memory: 15732kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2000
127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 75354 75354 75354 75354 75354 75354 75354 75354...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1895
127784 127784 127784 127784 127784 127784 127784 127784 127784 127784 75354 75354 75354 75354 75354 75354 75354 75354 75354 75354 75354 75354 98085 98085 98085 98085 98085 98085 98085 172015 172015 172015 172015 172015 172015 172015 172015 172015 172015 17201...

result:

ok 

Test #142:

score: 14
Accepted
time: 3ms
memory: 15704kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
99216 99216 99216 64331 64331 64331 158932 158932 105980 22483 22483 114484 45939 65096 65096 158343 47623 47623 45595 19928 7640 180454 84521 34544 158813 158813 112815 75895 75895 146977 146977 186866 26210 26210 28236 28236 28236 90757 27341 27341 27043 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1756
99216 99216 64331 64331 158932 105980 22483 114484 45939 65096 65096 158343 45595 7640 84521 34544 158813 158813 112815 75895 146977 146977 186866 26210 26210 28236 90757 27341 27043 68745 68745 68745 129391 129391 129391 192412 35406 35406 36819 36819 120922...

result:

ok 

Test #143:

score: 14
Accepted
time: 17ms
memory: 15748kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
184510 184510 184510 20982 20982 20982 25942 25942 25942 25942 25942 25942 25942 51540 51540 51540 51540 51540 51540 63747 63747 63747 63747 63747 63747 63747 63747 100847 144863 144863 144863 112699 112699 112699 112699 112699 112699 49470 49470 49470 4947...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2279
20982 20982 20982 25942 25942 25942 25942 25942 25942 25942 51540 51540 51540 51540 51540 51540 63747 63747 63747 63747 63747 63747 63747 63747 144863 144863 144863 112699 112699 112699 112699 112699 112699 49470 49470 49470 49470 49470 49470 49470 152276 152...

result:

ok 

Test #144:

score: 14
Accepted
time: 20ms
memory: 15736kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 32042 32042 32042 32042 32042 32042 32042 32042 32042 32042 32042 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2579
37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 37364 32042 32042 32042 32042 32042 32042 32042 32042 32042 32042 32042 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 106346 10634...

result:

ok 

Test #145:

score: 14
Accepted
time: 11ms
memory: 15784kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
134557 134557 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 201...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2834
134557 134557 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105 20105...

result:

ok 

Test #146:

score: 14
Accepted
time: 15ms
memory: 15772kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
2875
10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 10166 1...

result:

ok 

Test #147:

score: 14
Accepted
time: 7ms
memory: 14896kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
30 21
2 9 4 9 2 3 3 4 4 8 4 0 4 3 8 9 4 9 8 4 7 0 8 8 4 7 3 0 6 0
2 6 5 6 9 2 6 9 2 3 8 5 3 5 9 9 2 9 3 6 0

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #148:

score: 14
Accepted
time: 10ms
memory: 14836kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
27 28
6 5 1 9 5 8 1 0 9 3 9 5 1 8 3 3 8 9 5 0 4 8 5 3 8 9 0
6 2 6 7 8 7 0 6 4 3 6 2 6 4 6 9 3 7 2 3 4 2 7 8 5 3 9 2

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #149:

score: 14
Accepted
time: 9ms
memory: 15588kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
960 913
77 333 132 270 9 314 129 275 216 224 217 264 288 19 213 24 204 329 223 114 99 21 12 314 106 51 254 115 92 127 181 45 188 33 146 39 202 240 77 44 62 50 6 285 225 272 153 103 214 278 21 146 110 290 38 114 68 189 229 290 221 60 157 349 134 297 293 330 83 231 148...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #150:

score: 14
Accepted
time: 3ms
memory: 15240kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
151527 151527 151527 151527 151527 156778 156778 156778 156778 156778 156778 156778 22437 22437 151527 151527 151527 151527 156778 156778 156778 156778 156778 151527 151527 151527 156778 156778 151527 156778 151527 151527 156778 151527 156778 156778 156778 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #151:

score: 14
Accepted
time: 0ms
memory: 15076kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
141299 15375 15375 141299 117504 141299 141299 117504 117504 15375 141299 141299 15375 15375 117504 117504 15375 15375 15375 15375 15375 15375 15375 15375 117504 117504 15375 15375 117504 15375 141299 141299 117504 117504 15375 117504 15375 117504 15375 153...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #152:

score: 14
Accepted
time: 12ms
memory: 15236kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
99497 99497 99497 7024 1242 99497 7024 7024 57636 57636 57636 57636 99497 7024 7024 7024 57636 99497 57636 7024 7024 91499 1242 1242 91499 99497 57636 99497 7024 7024 1242 91499 91499 1242 91499 91499 1242 1242 91499 1242 91499 1242 91499 91499 1242 1242 91...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #153:

score: 14
Accepted
time: 7ms
memory: 14972kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 3000
167012 167012 167012 67985 67985 12324 12324 12324 124335 167012 167012 67985 12324 12324 12324 20371 20371 20371 49326 20371 49326 124335 124335 124335 124335 49326 124335 124335 124335 124335 49326 124335 49326 49326 20371 20371 20371 20371 20371 49326 20...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #154:

score: 14
Accepted
time: 10ms
memory: 14752kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
16 22
7 16 18 4 4 16 11 2 17 2 8 16 14 0 4 14
7 11 7 19 4 11 2 12 2 15 17 13 9 3 15 10 12 6 2 14 4 15

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #155:

score: 14
Accepted
time: 13ms
memory: 16652kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 341
174075 25403 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 37811 153241 25403 122384 29017 69510 69510 153241 25403 69099 39060 174075 25403 69099 104345 127693 65942 153241 72390 182624 104345 174075 173422 186673 67673 378...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #156:

score: 14
Accepted
time: 11ms
memory: 15692kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2705
11519 155866 16264 160215 179631 26746 16264 26746 173866 88443 49726 11519 185695 73060 184729 26746 148338 116604 158814 140952 115247 140686 116604 144394 155866 5610 144394 177542 59189 127398 13760 121209 186078 58660 40829 6784 58972 130225 158814 131...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #157:

score: 14
Accepted
time: 14ms
memory: 15816kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2694
157779 157779 157779 141523 141523 157779 157779 157779 157779 157779 157779 141523 157779 141523 157779 157779 141523 157779 141523 157779 157779 141523 157779 157779 157779 157779 157779 157779 157779 141523 141523 141523 141523 141523 141523 141523 15777...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #158:

score: 14
Accepted
time: 9ms
memory: 15704kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
3000 2450
120465 191342 191342 191342 120465 120465 191342 120465 120465 77259 120465 191342 120465 120465 77259 191342 120465 120465 191342 120465 77259 191342 77259 77259 120465 191342 77259 191342 191342 120465 120465 77259 120465 120465 120465 120465 77259 191342...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Subtask #6:

score: 42
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #159:

score: 42
Accepted
time: 25ms
memory: 20088kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
81309 81124
1762 8294 3338 359 5341 4093 8710 726 1148 1164 7387 6493 301 7658 2083 1514 714 7514 7723 6736 5234 7034 2094 2318 7202 6144 3278 5516 8208 4288 4703 1961 6916 6651 5552 2352 1715 5906 8126 776 7026 7248 3847 7426 8027 5677 7702 1536 2478 111 5062 4692 7...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #160:

score: 42
Accepted
time: 11ms
memory: 15840kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
5045 5060
2877 1602 1953 3679 3359 21 72 1993 1240 2319 1500 1602 935 428 1139 462 1336 3805 1575 3327 962 1592 1147 1688 1751 1098 44 956 681 1508 3569 159 406 1686 439 3808 3410 726 1274 1198 2253 1411 2174 3466 3068 666 3651 3085 2186 96 831 3503 1273 1260 2034 68...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #161:

score: 42
Accepted
time: 6ms
memory: 15604kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
10691 10070
3294 2470 1885 1812 3008 2720 7369 350 4318 1191 8336 7530 3816 6493 1486 3393 5200 3834 646 7946 825 587 3175 58 6830 8 5604 2080 6441 77 7008 8546 1835 3173 4935 5797 5597 2529 970 2441 4531 6026 4845 3004 7021 3124 2826 3495 4623 4258 6578 7608 1601 81...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #162:

score: 42
Accepted
time: 14ms
memory: 16660kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
20069 20820
7716 5516 1313 4211 8915 1386 3374 2628 10044 8741 7963 1826 8430 5238 7619 7869 7980 4094 3132 582 3354 7005 790 6968 2466 8513 9554 5353 3010 1519 9555 7259 9579 4306 9769 7721 7574 8133 1795 5956 10635 1062 8288 5553 1362 6101 7794 7036 4691 5003 9644 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #163:

score: 42
Accepted
time: 12ms
memory: 16740kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
30838 30170
14625 14460 8787 23472 21245 15136 17147 1720 6243 22874 4735 4066 20627 21654 22883 7615 6655 21025 20891 13833 22599 191 22762 12576 1012 16553 5083 511 14362 5668 3670 19637 1205 11891 23668 21067 15533 13783 15795 3969 23673 5700 11173 1701 11261 3416...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #164:

score: 42
Accepted
time: 22ms
memory: 18428kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
50185 50522
19109 31460 28950 25714 13446 25891 22280 2989 37722 16859 2916 18688 35373 37777 31270 24896 2396 27972 6166 5166 27128 20328 20385 30041 18388 13704 17153 37037 35814 4069 27523 17418 5382 27890 28583 33613 36451 4169 23534 31293 15234 25273 5105 460 20...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #165:

score: 42
Accepted
time: 3ms
memory: 16980kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
188219 182533 140711 140711 140711 188219 188219 188219 188219 188219 188219 140711 188219 188219 140711 140711 188219 188219 188219 188219 188219 188219 140711 140711 140711 188219 140711 140711 140711 140711 188219 140711 140711 182533 182533 182533 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #166:

score: 42
Accepted
time: 20ms
memory: 18848kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
7397 7397 25375 184932 184932 7397 128545 128545 25375 25375 25375 25375 128545 25375 128545 128545 25375 128545 128545 25375 25375 25375 128545 25375 25375 128545 128545 25375 128545 25375 25375 128545 128545 25375 25375 25375 25375 25375 25375 128545 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #167:

score: 42
Accepted
time: 7ms
memory: 18856kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
175966 31355 31355 31355 186606 39227 186606 175966 175966 175966 31355 31355 81566 175966 175966 175966 31355 81566 81566 175966 81566 39227 39227 186606 186606 39227 186606 39227 39227 39227 39227 39227 186606 39227 186606 186606 39227 186606 186606 3...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #168:

score: 42
Accepted
time: 27ms
memory: 19328kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 100000
111196 78286 78286 71485 71485 192400 71485 78286 71485 71485 192400 78286 78286 71485 71485 192400 71485 111196 78286 78286 192400 78286 71485 78286 78286 192400 71485 78286 71485 71485 71485 71485 78286 192400 78286 192400 192400 78286 192400 71485 19...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #169:

score: 42
Accepted
time: 25ms
memory: 18504kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80048 79952
70640 38997 109492 2031 38997 107917 38997 182472 178154 38979 110881 86513 31684 84426 123680 127527 33453 194465 122957 110893 134768 108213 77809 22018 19325 38236 116567 37607 135806 127527 171705 127527 194830 83948 43032 140773 14859 67578 177568 13...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #170:

score: 42
Accepted
time: 31ms
memory: 18588kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79812 80188
144650 144650 109508 144650 65760 191037 57187 191037 191037 127287 166495 127287 127287 72965 162938 31015 72352 72352 166649 72352 56341 7951 40620 196089 120866 63502 146957 19350 164740 56735 42575 81194 79795 166519 68049 88867 21575 109508 127890 10...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #171:

score: 42
Accepted
time: 26ms
memory: 18316kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79940 80060
56722 165179 56722 137479 56722 157283 157283 66269 50850 177950 157283 66269 105985 177950 66269 90774 177950 163420 165179 165179 49053 156403 31277 15339 11191 4068 15339 68645 43229 8311 186769 15339 56623 59573 121962 81958 175408 119805 169689 13541...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #172:

score: 42
Accepted
time: 23ms
memory: 18548kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80362 79638
70139 178102 99636 104807 40154 29497 178102 194673 178102 70139 29497 70139 63581 61397 35455 29497 194673 99636 77588 171394 129449 114951 194548 20542 20542 20542 129840 18282 46657 194673 98067 98067 44258 98067 99636 25796 81841 21799 138313 29594 13...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #173:

score: 42
Accepted
time: 31ms
memory: 18896kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87632 87368
180392 184503 98565 98565 98565 98565 93669 74720 62598 93244 64181 85474 108854 87959 95563 72416 87959 87959 52458 113067 17290 52458 87959 148459 51316 163328 146071 190377 174943 174943 174943 147115 98285 174943 73693 49320 4597 74149 44921 123011 10...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #174:

score: 42
Accepted
time: 29ms
memory: 19104kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87440 87560
103035 151217 190196 151217 90813 151217 181177 151217 126333 102378 143142 171568 148767 70529 178174 60113 90634 144969 119985 183975 107078 106642 117467 107078 106659 107078 107078 70529 116652 181006 31411 106659 31411 181006 103564 152907 152907 152...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #175:

score: 42
Accepted
time: 33ms
memory: 19176kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87218 87782
20757 20757 20757 20757 106433 94424 55232 181197 132777 109669 148062 58079 58079 63213 58079 58079 149128 20746 128751 63213 149128 63213 149128 22748 91222 149128 7745 7745 146849 109669 141141 171602 171602 63213 109669 7745 171602 171602 110503 11347...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #176:

score: 42
Accepted
time: 37ms
memory: 18876kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87875 87125
50340 173874 92302 92302 50340 165068 165068 137188 92302 92302 50340 165068 165068 50340 175995 178117 34375 93586 34375 131836 34375 96667 93586 119984 45079 102913 51919 51919 34375 50286 45079 45079 133356 45079 151389 72813 72813 72813 51919 13061 72...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #177:

score: 42
Accepted
time: 35ms
memory: 18892kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89552 90448
71895 60222 2390 2390 2390 2390 38804 2390 165559 38804 165559 106209 166639 177110 124207 65739 165559 101729 165559 3069 78395 51485 165559 124207 60222 67463 67463 153946 166079 131485 44682 67463 131485 190520 40579 44704 38804 131485 15091 38804 1599...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #178:

score: 42
Accepted
time: 18ms
memory: 18860kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90056 89944
7831 7916 103452 176011 7916 176011 176011 113758 30842 195043 30842 30842 30842 133042 30842 7916 72445 124165 7916 176011 7916 78141 195043 176011 198811 141718 195043 195043 27266 151088 194415 1251 27266 27266 106936 27266 86050 92835 27266 195043 582...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #179:

score: 42
Accepted
time: 24ms
memory: 18860kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90656 89344
25354 25354 34813 34813 137113 34813 25354 25354 25354 34780 34813 34780 35777 35777 137113 48518 35777 35777 35777 137113 48518 137113 185003 16100 137113 34780 60449 42733 81733 64303 81733 64303 81733 34813 64303 64303 81733 64303 34780 81733 75960 161...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #180:

score: 42
Accepted
time: 24ms
memory: 18908kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89824 90176
144361 144361 144361 139224 144672 144672 72408 8304 78756 77278 72408 74658 72408 72408 139224 144672 72408 144672 86176 160725 2699 78756 160725 48127 144361 26645 107595 63561 160725 63561 63561 63561 46898 160725 144526 63561 144526 144526 144361 1583...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #181:

score: 42
Accepted
time: 23ms
memory: 18736kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80308 79692
20085 155256 10226 155256 155256 144666 93161 24688 31529 168013 106470 69633 155244 44649 94939 21338 3707 140495 44649 11147 167098 164390 151986 18718 44649 106482 17936 10226 10226 6546 142524 106110 74794 109658 121677 133956 163292 150127 57959 1680...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #182:

score: 42
Accepted
time: 44ms
memory: 18464kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80050 79950
10308 7844 59767 7844 24997 6795 7844 178171 130854 153682 66855 12795 76247 166450 92282 109373 92414 76247 80222 76247 66852 6795 96599 4608 6795 4983 40570 35986 66855 82387 190403 66855 91168 82387 24471 82387 154144 39499 83686 87054 176660 34521 175...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
40000
7844 24997 130854 153682 166450 76247 6795 66855 82387 83686 34521 143818 95911 93547 58234 75715 154539 87876 154767 159101 35986 27580 161018 139067 6871 176688 120622 92414 135071 130053 61774 2872 175482 115587 175714 79228 177087 178171 67965 24471 7243...

result:

ok 

Test #183:

score: 42
Accepted
time: 25ms
memory: 18368kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80138 79862
21974 190859 32045 32045 198237 190859 190859 103833 63333 196332 134883 32045 121574 150487 80250 86479 195064 83975 65424 65424 153809 65424 194491 153809 182281 151833 151833 151833 45309 77933 32023 179169 195786 48553 14232 121169 121169 173471 32023...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #184:

score: 42
Accepted
time: 26ms
memory: 18832kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79916 80084
173448 154901 47415 47415 99354 134336 56173 47415 142458 134336 16569 34864 75263 34864 134336 132365 132365 132365 141783 34864 181806 1042 11156 102417 112053 58072 84499 148917 186393 34276 186393 180264 126445 142458 78353 2606 114683 65826 114683 11...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #185:

score: 42
Accepted
time: 43ms
memory: 19172kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87542 87458
90119 194055 22913 75121 2024 77111 17222 131916 194055 194055 194055 65270 176654 12262 62526 64927 158463 135452 33581 150426 64927 127846 17249 64927 64927 62526 123277 162149 146607 51523 59068 176654 62526 30689 62526 109169 161616 75121 161616 16214...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
35000
131916 194055 150426 64927 62526 161616 17249 3750 75121 72004 109169 74601 162050 152768 176654 173499 172318 171075 115721 53655 6319 152465 53322 140484 141916 54363 109737 150057 162149 170416 155126 189894 144922 22913 184922 88306 170470 28595 156216 1...

result:

ok 

Test #186:

score: 42
Accepted
time: 36ms
memory: 18964kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87977 87023
193086 109793 4995 44720 3912 94062 41099 4852 59379 187361 99764 65386 20260 109533 188554 65386 65386 65386 95071 160817 59495 162547 109533 91974 143570 176071 195040 29376 121967 6885 100321 98321 98321 193471 188554 188554 98321 155828 188554 158539 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #187:

score: 42
Accepted
time: 29ms
memory: 19044kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87845 87155
179720 63056 158542 24982 6285 81099 186820 70025 106713 121539 79914 128690 111345 28866 192406 16074 82402 82402 82402 82402 49550 96256 123299 99080 29388 28116 29388 118000 29388 29388 147043 67603 28907 86074 14388 15263 182471 14388 182471 182471 14...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #188:

score: 42
Accepted
time: 32ms
memory: 18968kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87008 87992
58920 17218 119090 183420 114238 114238 114238 120583 114238 173354 173354 35548 9172 9172 9172 9172 113760 31561 9820 173354 173354 42738 168431 42738 57064 79775 105968 140254 45190 140254 38362 140254 42738 42738 168431 140254 159289 194920 194920 1949...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #189:

score: 42
Accepted
time: 30ms
memory: 19084kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90320 89680
12320 15669 15669 145596 621 15669 15669 79994 188954 111546 88953 15669 154035 141857 98818 157978 140671 10152 71069 178810 145596 32330 129253 78224 59529 34713 129253 57964 59529 51963 19291 53630 19291 78975 54078 154616 129253 19291 145596 19291 192...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #190:

score: 42
Accepted
time: 24ms
memory: 18984kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89752 90248
189327 111626 189327 189327 99791 196619 40670 196619 4773 588 588 588 124029 588 4001 61834 9814 126641 4001 189327 588 189327 98200 196619 142361 3822 4639 97307 64679 3822 106940 10199 190519 150493 124029 124029 99791 76563 78656 78656 78656 78656 786...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #191:

score: 42
Accepted
time: 27ms
memory: 18892kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89980 90020
111622 111622 111622 187129 166545 66520 46944 111622 166545 187129 109034 17957 187129 21406 187129 187129 10682 199439 199439 199439 112679 199439 199439 80769 80769 173433 173433 80769 123952 80769 111622 141180 125394 173433 25105 125394 80769 173433 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #192:

score: 42
Accepted
time: 28ms
memory: 18828kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89372 90628
48796 136987 136987 136987 136987 136987 17416 97889 29183 130011 130011 130011 130011 130011 150316 150316 150316 60315 91737 150316 150316 25232 71601 71601 71601 71601 54628 71601 137732 131020 137732 131020 137732 137732 137732 131020 131020 110897 11...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #193:

score: 42
Accepted
time: 21ms
memory: 18384kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80058 79942
8160 110461 195611 197754 16672 162677 169264 116049 156629 13214 29943 2536 183732 175926 52335 174281 183161 15506 162677 15769 63744 60851 124955 162677 89615 52335 140762 119110 88913 91198 25804 52335 19278 140799 10154 88913 88913 120592 724 52134 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #194:

score: 42
Accepted
time: 20ms
memory: 18552kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79624 80376
66508 166933 62007 111120 106910 35663 195878 181064 35663 105252 162138 35663 15031 195878 195878 68270 92363 519 20509 149069 147651 30750 179383 154279 149069 149069 105252 57028 22859 105252 182192 177898 14883 68977 14883 90597 185454 164739 146028 9...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #195:

score: 42
Accepted
time: 31ms
memory: 18564kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
79944 80056
82411 99912 108835 115436 175089 98312 45801 187963 148553 1270 43031 43031 1270 1270 43031 165891 165891 9066 33876 9066 4846 9066 123374 29591 165891 77938 159360 77938 50922 108744 16292 59826 77938 16292 159360 97204 50922 159360 50922 199069 192148 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #196:

score: 42
Accepted
time: 30ms
memory: 18636kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
80290 79710
175697 182144 182144 59863 23796 59863 135098 11062 75263 46927 87660 59863 87660 182144 7106 87660 19161 19161 130266 89773 19161 124758 124758 68064 12422 116698 8562 8562 124758 8562 72996 11372 92097 92097 99215 191633 130266 183225 99227 130266 12459...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #197:

score: 42
Accepted
time: 23ms
memory: 18908kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
86915 88085
62648 169970 62648 44069 113289 105262 119725 105508 124489 62648 155463 103094 119725 62648 73229 105508 105508 105508 134241 119725 73701 66516 119725 103679 73701 73701 195622 73701 169970 20826 159276 42457 155463 64985 156028 38140 180583 87025 53982...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #198:

score: 42
Accepted
time: 22ms
memory: 18964kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87596 87404
161325 130632 130632 47923 111522 22709 47923 22709 190140 47923 47923 90945 189402 98967 163967 130632 75017 130632 196565 163967 196565 157445 4767 196565 185179 14241 22709 22709 12482 196565 12255 111522 164000 64366 111522 109368 64366 88772 111522 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #199:

score: 42
Accepted
time: 29ms
memory: 18860kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
88028 86972
100562 184235 95375 166104 78526 75972 158506 26539 16594 16594 29774 64757 39687 82947 16594 64757 80400 16594 64757 64757 35371 168990 880 91870 196225 123900 197411 880 59703 120949 191525 59703 59703 197411 197411 197411 116107 79479 880 194755 186695...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #200:

score: 42
Accepted
time: 24ms
memory: 19172kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
87413 87587
97793 97793 84429 97205 119416 158759 97793 97793 27030 178232 27030 27030 94150 27030 161820 121944 121944 121944 121944 62794 76900 30918 29267 95219 29267 28526 107027 30784 35977 183815 15370 178642 183815 30784 183815 183815 177992 30784 15370 30784 ...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #201:

score: 42
Accepted
time: 30ms
memory: 18860kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90420 89580
91308 69261 81839 169283 68097 91308 84424 84424 84424 166559 84424 84424 131726 91308 83282 179198 88162 91308 91308 179358 36386 36386 147981 90351 36386 36386 36386 187132 151687 178590 7004 98353 151667 12279 113248 195223 110178 85432 179358 51 76244...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #202:

score: 42
Accepted
time: 23ms
memory: 18952kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90004 89996
102064 185199 78199 67597 106835 106835 78148 19631 106835 179525 106835 154143 154143 106835 154143 154143 154143 85825 85825 19631 85825 19631 124917 85825 19631 85825 177932 38396 38396 108654 128168 113932 124917 21352 15905 15905 15905 15905 19631 13...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #203:

score: 42
Accepted
time: 24ms
memory: 18964kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
90204 89796
50923 53775 53775 42958 53775 5908 53775 53775 191123 116332 124443 46680 106361 30169 36315 18518 156865 94827 109933 48438 8208 137553 41767 89477 89477 7510 168474 176088 89477 89477 89477 176088 38068 4583 176088 176088 176088 110775 41767 166673 3156...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #204:

score: 42
Accepted
time: 20ms
memory: 18900kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
89892 90108
113783 152075 198502 62416 62416 91159 110428 77677 121755 87461 113043 62416 87461 62416 62416 194342 87461 194342 157926 135680 131570 194342 194342 194342 184537 164724 198502 87461 59694 137600 137600 29946 29946 87461 137600 29946 157785 149090 15778...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #205:

score: 42
Accepted
time: 20ms
memory: 17600kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 341
89810 164928 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193694 148836 148125 164928 23274 103601 135457 135457 148125 164928 71164 26231 89810 164928 71164 115951 70840 58768 148125 190365 120390 115951 89810 124330 114424 193...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #206:

score: 42
Accepted
time: 47ms
memory: 21368kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
96980 100000
54972 48765 98604 7901 183263 75709 96565 170833 28887 89373 159757 89182 145742 4860 114599 155396 138352 193471 111168 48765 55459 181999 108161 149921 74193 193113 78578 71248 113569 98541 74888 82356 128623 89524 95903 123818 68344 183263 98604 15539...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #207:

score: 42
Accepted
time: 34ms
memory: 21752kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
100000 83647
101651 116559 24710 134077 101923 185459 3904 112960 52975 60555 33429 117817 27691 86017 187452 34475 131041 10640 127463 115246 65001 169808 119112 91872 134930 85336 105193 124252 153146 6364 58449 27224 98598 60823 16273 27691 5323 163699 25554 11731...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #208:

score: 42
Accepted
time: 44ms
memory: 21512kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
99851 100000
42238 62081 84960 18236 174201 12623 148768 11563 126738 179755 62749 38395 174931 189180 82425 84143 185731 103010 136190 156069 114110 131142 129667 31679 31773 22457 12725 96469 79781 192896 151014 179758 193178 18113 84143 56068 143798 55209 56821 15...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #209:

score: 42
Accepted
time: 43ms
memory: 21044kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
92173 100000
22914 84312 162365 39548 151543 67334 120655 92453 131709 5855 189445 153366 3107 151543 7511 126675 123347 141497 198684 105458 181709 26286 17535 165898 132129 52878 85604 127487 183190 85032 124236 33762 179905 182591 64527 105564 70277 58463 167245 1...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Test #210:

score: 42
Accepted
time: 39ms
memory: 20640kb

input:

vHwzrZUx9chlYIJ7zODvOcQbZwj3OxhB
85883 100000
23669 177064 78856 189594 56258 183497 30018 78801 121419 162357 20809 147423 84221 96237 186740 169563 177983 88479 65929 16520 73691 26112 14684 18807 158512 89952 136495 23156 67361 47297 185141 94218 95449 194729 145347 121420 163478 168849 135746 10...

output:

IyRwUZ9rsuq5tjuK54lpSvORqGQyBWEZ
OK
1
-1

result:

ok 

Extra Test:

score: 0
Extra Test Passed