QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#66501 | #5015. 树 | Dual | 0 | 19ms | 7804kb | C++ | 1.9kb | 2022-12-08 20:06:09 | 2022-12-08 20:06:11 |
Judging History
answer
#include <bits/stdc++.h>
const int N = 1e3 + 5;
int ask(int u,std::vector<int>v);
void answer(int u,int v);
typedef std::vector<int> Set_nd;
int n;
int dep[N];
std::random_device rd;
std::mt19937 Rnd(19260817);
int dis[N];
inline bool cmp(const int &x,const int &y) { return dis[x] < dis[y];}
void Solve_set(Set_nd &A,Set_nd &B)
{
if(A.empty() || B.empty()) return;
if(A.size() == 1)
{
for(auto it : B)
{
// if(ask(it,A) != 1)
// {
// printf("more:%d,%d\n",it,A[0]);
// }
answer(A[0],it);
}
return;
}
if(B.size() == 1)
{
for(auto it : A)
if(ask(it,B) == 1) {answer(it,B[0]);break;}
return;
}
Set_nd Poi;
for(auto it : A) if(Rnd() % 2) Poi.push_back(it);
while(Poi.empty()) for(auto it : A) if(Rnd() % 2) Poi.push_back(it);
// printf("Poi:%d\n",Poi.size());
for(auto it : A) dis[it] = ask(it,Poi);
for(auto it : B) dis[it] = ask(it,Poi);
std::sort(A.begin(),A.end(),cmp);
std::sort(B.begin(),B.end(),cmp);
for(int l = 0,r,lb = 0,rb = -1;l < A.size();l = r + 1)
{
r = l;
while(r + 1 < A.size() && dis[A[r + 1]] == dis[A[l]]) ++r;
while(lb < B.size() && dis[B[lb]] < dis[A[l]] + Poi.size()) ++lb;
while(rb + 1 < B.size() && dis[B[rb + 1]] <= dis[A[l]] + Poi.size()) ++rb;
// printf("lb,rb:%d,%d,%d\n",lb,rb,B.size());
// if(lb <= rb)
// {
Set_nd ta,tb;
for(int i = l;i <= r;i++) ta.push_back(A[i]);
for(int i = 0;i < B.size();i++)
if(dis[B[i]] == dis[A[l]] + Poi.size()) tb.push_back(B[i]);
// for(int i = lb;i <= rb;i++) tb.push_back(B[i]);
if(tb.size()) Solve_set(ta,tb);
// }
}
}
std::vector<int> Nd[N];
void solver(int _n,int A,int B)
{
n = _n;
for(int i = 1;i <= n;i++)
dep[i] = ask(i,Set_nd(1,1));
for(int i = 1;i <= n;i++) Nd[dep[i]].push_back(i);
for(int i = 0;i <= n;i++)
if(Nd[i].size() && Nd[i + 1].size())
Solve_set(Nd[i],Nd[i + 1]);
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 3
Accepted
time: 17ms
memory: 7652kb
input:
1000 500000 500000 1 2 2 3 2 4 2 5 2 6 3 7 2 8 5 9 5 10 9 11 2 12 9 13 4 14 5 15 12 16 5 17 4 18 4 19 13 20 9 21 19 22 7 23 6 24 14 25 2 26 10 27 14 28 21 29 17 30 8 31 15 32 9 33 22 34 24 35 20 36 6 37 12 38 19 39 31 40 35 41 25 42 11 43 8 44 9 45 12 46 26 47 10 48 6 49 27 50 39 51 33 52 6 53 43 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #2:
score: 0
Accepted
time: 19ms
memory: 7540kb
input:
1000 500000 500000 1 2 1 3 1 4 4 5 1 6 2 7 1 8 2 9 3 10 4 11 5 12 11 13 9 14 13 15 10 16 10 17 8 18 9 19 13 20 19 21 17 22 19 23 23 24 24 25 22 26 18 27 21 28 22 29 26 30 24 31 30 32 23 33 28 34 29 35 32 36 36 37 32 38 35 39 34 40 40 41 40 42 42 43 42 44 40 45 40 46 40 47 46 48 39 49 49 50 48 51 50 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #3:
score: 0
Accepted
time: 14ms
memory: 7552kb
input:
1000 500000 500000 498 209 498 647 498 776 498 8 498 382 498 181 498 644 498 331 498 516 498 197 498 630 498 693 498 577 498 572 498 393 498 638 498 94 498 847 498 273 498 535 498 703 498 176 498 605 498 214 498 610 498 416 498 928 498 470 498 753 498 182 498 294 498 514 498 831 498 386 498 935 498 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #4:
score: 0
Accepted
time: 18ms
memory: 7776kb
input:
1000 500000 500000 1 2 1 3 1 4 1 5 4 6 4 7 7 8 4 9 3 10 5 11 4 12 9 13 12 14 7 15 14 16 9 17 16 18 9 19 13 20 17 21 17 22 18 23 23 24 23 25 18 26 22 27 18 28 25 29 21 30 29 31 31 32 28 33 32 34 26 35 31 36 27 37 29 38 30 39 33 40 38 41 41 42 42 43 43 44 35 45 41 46 43 47 43 48 47 49 45 50 46 51 42 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #5:
score: 0
Accepted
time: 5ms
memory: 7664kb
input:
1000 500000 500000 1 2 1 3 1 4 1 5 2 6 1 7 1 8 1 9 1 10 1 11 1 12 2 13 1 14 2 15 2 16 2 17 1 18 2 19 2 20 2 21 2 22 1 23 1 24 1 25 2 26 2 27 2 28 2 29 2 30 1 31 2 32 1 33 2 34 1 35 1 36 1 37 1 38 2 39 1 40 1 41 1 42 2 43 2 44 1 45 1 46 2 47 1 48 2 49 1 50 2 51 2 52 1 53 1 54 1 55 1 56 1 57 2 58 1 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #6:
score: 0
Accepted
time: 14ms
memory: 7656kb
input:
1000 500000 500000 775 723 775 587 775 405 775 383 775 154 775 567 775 561 775 114 775 894 775 79 775 229 775 388 775 165 775 240 775 358 775 287 775 560 775 578 775 220 775 222 775 214 775 86 775 94 775 997 775 531 775 476 775 68 775 838 775 135 775 851 775 478 775 588 775 136 775 689 775 396 775 8...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #7:
score: 0
Accepted
time: 11ms
memory: 7556kb
input:
1000 500000 500000 1 2 1 3 3 4 4 5 4 6 5 7 7 8 8 9 8 10 10 11 10 12 12 13 12 14 13 15 15 16 16 17 16 18 17 19 18 20 20 21 21 22 21 23 23 24 24 25 25 26 25 27 27 28 27 29 29 30 29 31 30 32 31 33 33 34 34 35 34 36 36 37 37 38 38 39 39 40 40 41 41 42 41 43 43 44 44 45 44 46 45 47 47 48 48 49 49 50 50 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #8:
score: -3
Wrong Answer
time: 15ms
memory: 7756kb
input:
1000 500000 500000 862 253 862 745 862 416 862 256 862 515 862 821 862 379 862 494 862 820 862 496 862 648 862 766 862 629 862 106 862 926 862 166 862 729 862 989 862 212 862 522 862 787 862 711 862 962 862 969 862 698 862 750 862 585 862 130 862 831 862 760 862 764 862 314 862 972 862 346 862 275 8...
output:
The sum is too large
result:
wrong answer Wrong Answer
Subtask #2:
score: 0
Wrong Answer
Test #11:
score: 17
Accepted
time: 3ms
memory: 3980kb
input:
100 3000 40000 66 95 66 60 66 93 66 69 66 82 66 24 66 64 66 84 66 42 66 22 66 67 66 54 66 90 66 26 66 41 66 18 66 43 66 68 66 36 66 88 66 33 66 29 66 79 66 6 66 48 66 47 66 8 66 38 66 61 69 97 64 30 38 86 88 14 18 10 54 81 88 25 29 2 18 21 95 46 42 80 93 91 61 62 68 35 47 23 69 17 93 28 18 31 61 70 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #12:
score: 0
Accepted
time: 2ms
memory: 3996kb
input:
100 3000 40000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 26 53...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #13:
score: 0
Accepted
time: 3ms
memory: 6000kb
input:
100 3000 40000 1 2 2 3 3 4 3 5 5 6 6 7 4 8 7 9 1 10 4 11 3 12 7 13 1 14 1 15 7 16 3 17 4 18 7 19 9 20 1 21 8 22 10 23 6 24 6 25 2 26 10 27 7 28 5 29 5 30 8 31 4 32 4 33 10 34 2 35 8 36 9 37 3 38 6 39 3 40 8 41 9 42 6 43 10 44 8 45 5 46 8 47 8 48 2 49 8 50 8 51 3 52 1 53 3 54 5 55 5 56 8 57 3 58 10 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #14:
score: 0
Accepted
time: 3ms
memory: 5720kb
input:
100 3000 40000 13 50 17 13 62 17 5 62 74 5 83 74 98 83 37 98 80 37 23 80 87 23 27 87 40 27 95 40 52 95 54 52 67 54 42 67 18 42 34 18 81 34 59 81 12 59 30 12 64 30 15 64 92 15 61 92 1 61 72 1 16 72 3 16 48 3 31 48 41 31 77 41 93 77 33 93 96 33 53 96 28 53 90 28 25 90 26 25 57 55 85 57 45 85 20 45 22 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #15:
score: 0
Accepted
time: 3ms
memory: 3988kb
input:
100 3000 40000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 26 53...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #16:
score: 0
Accepted
time: 1ms
memory: 5960kb
input:
100 3000 40000 1 2 2 3 3 4 3 5 5 6 6 7 6 8 8 9 9 10 10 11 10 12 12 13 12 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 21 23 23 24 24 25 25 26 25 27 26 28 28 29 28 30 30 31 30 32 32 33 33 34 33 35 35 36 36 37 36 38 38 39 39 40 39 41 41 42 41 43 42 44 43 45 44 46 46 47 47 48 48 49 48 50 49 51 50...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #17:
score: 0
Accepted
time: 2ms
memory: 4112kb
input:
100 3000 40000 1 2 1 3 1 4 2 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 2 14 1 15 1 16 2 17 2 18 2 19 1 20 2 21 2 22 2 23 1 24 2 25 2 26 2 27 2 28 2 29 1 30 1 31 2 32 2 33 1 34 1 35 1 36 1 37 2 38 2 39 2 40 1 41 2 42 2 43 1 44 2 45 2 46 2 47 2 48 1 49 2 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 2 6...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #18:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
100 3000 40000 1 2 2 3 3 4 4 5 2 6 1 7 7 8 7 9 1 10 4 11 7 12 1 13 5 14 5 15 4 16 7 17 9 18 5 19 10 20 8 21 1 22 1 23 6 24 5 25 2 26 7 27 1 28 7 29 9 30 10 31 7 32 3 33 8 34 10 35 8 36 10 37 2 38 7 39 6 40 9 41 8 42 7 43 9 44 3 45 2 46 5 47 10 48 2 49 6 50 4 51 6 52 5 53 8 54 5 55 6 56 6 57 7 58 3 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #19:
score: 0
Accepted
time: 2ms
memory: 4116kb
input:
100 3000 40000 1 2 1 3 3 4 3 5 5 6 5 7 6 8 7 9 8 10 10 11 10 12 12 13 13 14 13 15 15 16 16 17 16 18 17 19 18 20 19 21 21 22 22 23 23 24 24 25 24 26 25 27 26 28 27 29 28 30 30 31 30 32 31 33 33 34 34 35 34 36 35 37 37 38 38 39 39 40 39 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 48 50 49 51 50...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #20:
score: 0
Accepted
time: 2ms
memory: 4096kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54 18 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #21:
score: 0
Accepted
time: 3ms
memory: 3912kb
input:
100 3000 40000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 26 53...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #22:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 2 6 3 7 1 8 3 9 4 10 3 11 8 12 3 13 1 14 6 15 1 16 2 17 9 18 5 19 6 20 20 21 8 22 9 23 10 24 7 25 4 26 19 27 24 28 4 29 5 30 19 31 6 32 26 33 23 34 17 35 10 36 28 37 15 38 18 39 26 40 33 41 38 42 41 43 34 44 18 45 12 46 33 47 34 48 25 49 27 50 10 51 21 52 29 53 4 54 30...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #23:
score: 0
Accepted
time: 3ms
memory: 3992kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 3 6 1 7 1 8 5 9 2 10 6 11 3 12 9 13 7 14 12 15 8 16 9 17 11 18 13 19 17 20 19 21 18 22 20 23 14 24 18 25 24 26 25 27 24 28 21 29 20 30 22 31 26 32 23 33 24 34 26 35 32 36 28 37 36 38 34 39 34 40 35 41 32 42 34 43 41 44 43 45 43 46 41 47 38 48 43 49 42 50 42 51 49 52 48...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #24:
score: 0
Accepted
time: 0ms
memory: 5724kb
input:
100 3000 40000 1 2 2 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 2 11 2 12 1 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 1 21 1 22 1 23 2 24 1 25 1 26 2 27 2 28 2 29 2 30 1 31 1 32 1 33 2 34 1 35 2 36 2 37 1 38 1 39 2 40 2 41 2 42 1 43 2 44 1 45 2 46 1 47 2 48 2 49 2 50 2 51 1 52 1 53 1 54 1 55 2 56 1 57 2 58 2 59 1 6...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #25:
score: 0
Accepted
time: 3ms
memory: 3872kb
input:
100 3000 40000 1 2 2 3 3 4 4 5 2 6 1 7 7 8 1 9 2 10 3 11 4 12 9 13 3 14 1 15 7 16 5 17 10 18 7 19 6 20 4 21 2 22 8 23 7 24 4 25 2 26 5 27 6 28 3 29 4 30 7 31 10 32 7 33 5 34 10 35 5 36 8 37 7 38 3 39 6 40 3 41 4 42 5 43 7 44 10 45 8 46 9 47 4 48 2 49 4 50 2 51 3 52 5 53 6 54 3 55 10 56 1 57 5 58 7 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #26:
score: 0
Accepted
time: 3ms
memory: 3960kb
input:
100 3000 40000 1 2 2 3 1 4 1 5 1 6 6 7 1 8 7 9 2 10 9 11 2 12 11 13 11 14 6 15 10 16 9 17 13 18 16 19 17 20 19 21 13 22 17 23 16 24 20 25 23 26 21 27 22 28 23 29 26 30 23 31 31 32 30 33 30 34 34 35 28 36 34 37 31 38 37 39 31 40 33 41 32 42 41 43 43 44 41 45 45 46 44 47 47 48 46 49 45 50 50 51 49 52 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #27:
score: 0
Accepted
time: 3ms
memory: 4088kb
input:
100 3000 40000 1 2 2 3 3 4 4 5 5 6 2 7 7 8 8 9 9 10 2 11 4 12 3 13 2 14 1 15 4 16 2 17 6 18 2 19 9 20 7 21 1 22 8 23 1 24 5 25 3 26 8 27 7 28 3 29 5 30 10 31 6 32 6 33 10 34 8 35 7 36 6 37 3 38 9 39 6 40 5 41 3 42 6 43 1 44 6 45 8 46 3 47 1 48 2 49 2 50 8 51 7 52 8 53 9 54 1 55 2 56 1 57 9 58 5 59 9...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #28:
score: 0
Accepted
time: 3ms
memory: 3912kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 5 6 5 7 6 8 7 9 1 10 9 11 8 12 8 13 9 14 5 15 8 16 15 17 14 18 9 19 14 20 18 21 18 22 19 23 17 24 16 25 21 26 23 27 24 28 23 29 29 30 29 31 29 32 24 33 27 34 31 35 34 36 29 37 34 38 38 39 34 40 34 41 33 42 33 43 42 44 42 45 36 46 45 47 38 48 45 49 40 50 50 51 45 52 47 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #29:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
100 3000 40000 1 2 1 3 3 4 4 5 5 6 6 7 4 8 3 9 9 10 4 11 2 12 7 13 7 14 6 15 7 16 3 17 7 18 2 19 9 20 10 21 9 22 8 23 8 24 4 25 1 26 7 27 7 28 9 29 9 30 10 31 7 32 5 33 2 34 3 35 9 36 3 37 9 38 8 39 8 40 5 41 3 42 8 43 7 44 1 45 2 46 4 47 9 48 4 49 4 50 9 51 8 52 3 53 2 54 3 55 7 56 1 57 2 58 9 59 4...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #30:
score: 0
Accepted
time: 0ms
memory: 3988kb
input:
100 3000 40000 1 2 2 3 3 4 4 5 5 6 6 7 5 8 8 9 7 10 4 11 9 12 9 13 5 14 1 15 8 16 1 17 10 18 8 19 4 20 9 21 2 22 4 23 10 24 7 25 9 26 3 27 1 28 5 29 10 30 7 31 9 32 3 33 5 34 2 35 8 36 7 37 6 38 8 39 10 40 7 41 1 42 5 43 2 44 8 45 7 46 9 47 8 48 4 49 2 50 3 51 6 52 1 53 7 54 4 55 6 56 3 57 9 58 9 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #31:
score: 0
Accepted
time: 2ms
memory: 3912kb
input:
100 3000 40000 1 2 1 3 2 4 1 5 1 6 1 7 1 8 1 9 2 10 2 11 1 12 1 13 2 14 1 15 1 16 2 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 2 26 1 27 2 28 1 29 2 30 1 31 1 32 1 33 2 34 1 35 1 36 1 37 1 38 1 39 1 40 2 41 2 42 2 43 1 44 2 45 2 46 2 47 1 48 1 49 2 50 2 51 2 52 2 53 1 54 1 55 2 56 2 57 2 58 1 59 2 6...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #32:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 1 6 1 7 3 8 1 9 4 10 6 11 11 12 5 13 5 14 11 15 14 16 10 17 15 18 12 19 18 20 12 21 13 22 17 23 15 24 22 25 19 26 26 27 26 28 27 29 22 30 26 31 26 32 26 33 25 34 30 35 33 36 31 37 31 38 35 39 30 40 35 41 33 42 40 43 37 44 43 45 44 46 38 47 38 48 43 49 42 50 46 51 43 52...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #33:
score: 0
Accepted
time: 2ms
memory: 5740kb
input:
100 3000 40000 73 53 73 12 73 75 73 88 73 24 73 30 73 99 73 81 73 43 73 84 73 11 73 94 73 97 73 26 73 25 73 4 73 14 73 44 73 34 73 71 73 51 73 16 73 77 73 32 73 58 73 36 73 8 73 76 73 59 73 15 73 87 73 45 73 3 73 35 73 91 73 67 73 92 75 65 84 80 44 40 34 42 16 37 88 13 99 90 58 38 84 95 91 85 75 2 7...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #34:
score: 0
Accepted
time: 2ms
memory: 5648kb
input:
100 3000 40000 53 59 53 50 53 8 53 49 53 11 53 37 53 69 53 68 53 16 53 67 53 74 53 36 53 84 53 1 53 3 53 56 53 91 53 85 53 18 53 43 53 89 53 75 53 78 53 41 53 83 53 70 53 51 53 97 53 73 53 33 53 99 53 90 53 24 53 98 53 96 53 44 53 14 53 63 53 39 53 28 53 86 53 64 53 2 53 9 53 60 53 93 53 77 53 92 53...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #35:
score: 0
Accepted
time: 2ms
memory: 3912kb
input:
100 3000 40000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54 18 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #36:
score: 0
Accepted
time: 3ms
memory: 3872kb
input:
100 3000 40000 47 87 41 47 50 41 71 50 17 71 54 18 89 58 33 89 60 33 35 60 79 35 12 79 83 12 81 83 20 81 37 20 23 37 56 23 11 56 21 11 40 21 98 40 9 98 61 9 22 61 99 22 30 99 73 30 82 73 85 82 10 85 51 10 93 51 91 93 24 91 7 24 8 7 92 8 55 92 67 55 53 67 57 53 64 57 74 64 16 74 90 16 13 90 77 25 96 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #37:
score: 0
Accepted
time: 0ms
memory: 5856kb
input:
100 3000 40000 77 72 77 66 77 95 77 15 77 96 77 41 77 50 77 34 77 68 77 97 77 20 77 64 77 37 77 80 77 90 77 31 77 60 77 81 77 78 77 55 77 79 77 53 77 70 77 62 77 19 77 26 77 43 77 75 77 83 77 89 77 91 77 67 77 35 77 59 77 17 77 54 77 14 77 8 77 84 77 10 77 74 77 76 77 32 77 2 77 23 77 88 77 56 77 39...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #38:
score: 0
Accepted
time: 3ms
memory: 4116kb
input:
100 3000 40000 54 61 54 15 54 94 54 30 54 56 54 6 54 55 54 4 54 78 54 29 54 9 54 87 54 23 54 33 54 2 54 50 54 11 54 65 54 22 54 68 54 1 54 3 54 95 54 34 54 73 54 48 54 32 54 57 54 84 54 24 54 45 54 72 54 19 54 74 54 49 54 12 54 28 54 41 54 64 54 53 54 36 95 79 65 44 78 60 23 82 48 16 30 10 56 91 12 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #39:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
100 3000 40000 75 8 75 88 75 16 75 7 75 5 75 11 75 72 75 86 75 91 75 14 75 57 75 55 75 71 75 97 75 50 75 84 75 48 75 27 75 64 75 79 75 85 75 39 75 32 75 53 75 46 75 49 75 37 75 78 75 45 75 44 75 25 75 13 75 67 75 15 75 35 75 12 75 23 75 69 75 68 75 90 75 92 75 65 75 41 75 87 75 56 75 81 75 1 75 95 7...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #40:
score: 0
Accepted
time: 3ms
memory: 3876kb
input:
100 3000 40000 1 2 1 3 2 4 4 5 4 6 5 7 6 8 8 9 9 10 10 11 11 12 11 13 12 14 13 15 14 16 16 17 17 18 17 19 19 20 20 21 21 22 21 23 23 24 24 25 24 26 25 27 27 28 28 29 28 30 30 31 30 32 31 33 33 34 33 35 34 36 35 37 37 38 38 39 38 40 40 41 40 42 41 43 43 44 43 45 44 46 46 47 46 48 47 49 49 50 50 51 51...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #41:
score: 0
Accepted
time: 3ms
memory: 3848kb
input:
100 3000 40000 1 2 2 3 2 4 1 5 2 6 1 7 2 8 2 9 2 10 1 11 1 12 2 13 1 14 2 15 1 16 1 17 1 18 1 19 1 20 1 21 2 22 2 23 2 24 1 25 2 26 2 27 2 28 2 29 1 30 1 31 2 32 1 33 2 34 1 35 1 36 1 37 1 38 2 39 2 40 1 41 1 42 2 43 2 44 1 45 1 46 2 47 1 48 2 49 2 50 2 51 2 52 2 53 2 54 1 55 2 56 1 57 2 58 1 59 1 6...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #42:
score: -17
Wrong Answer
time: 1ms
memory: 3992kb
input:
100 3000 40000 1 2 2 3 1 4 2 5 3 6 3 7 6 8 5 9 6 10 4 11 9 12 7 13 3 14 2 15 4 16 11 17 2 18 12 19 14 20 2 21 11 22 1 23 1 24 3 25 8 26 23 27 20 28 27 29 25 30 7 31 7 32 29 33 6 34 15 35 22 36 32 37 27 38 2 39 3 40 7 41 18 42 6 43 34 44 35 45 35 46 12 47 47 48 3 49 37 50 45 51 31 52 9 53 11 54 41 55...
output:
Different tree
result:
wrong answer Wrong Answer
Subtask #3:
score: 0
Wrong Answer
Test #111:
score: 20
Accepted
time: 15ms
memory: 7668kb
input:
1000 50000 3000000 126 207 937 126 615 937 837 615 500 837 588 500 505 588 353 505 60 353 904 60 656 904 685 656 460 685 614 460 551 614 537 551 858 537 596 858 9 596 738 9 918 738 322 918 940 322 859 940 113 859 110 113 312 110 995 312 443 995 246 443 257 246 238 257 999 238 885 999 976 885 330 976...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #112:
score: 0
Accepted
time: 11ms
memory: 7508kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #113:
score: 0
Accepted
time: 15ms
memory: 7608kb
input:
1000 50000 3000000 1 2 2 3 2 4 4 5 5 6 6 7 6 8 8 9 8 10 10 11 10 12 12 13 12 14 13 15 14 16 15 17 16 18 18 19 18 20 19 21 20 22 21 23 22 24 24 25 24 26 26 27 27 28 27 29 28 30 29 31 30 32 31 33 32 34 34 35 35 36 36 37 36 38 37 39 39 40 39 41 41 42 41 43 42 44 43 45 45 46 45 47 47 48 48 49 48 50 50 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #114:
score: 0
Accepted
time: 7ms
memory: 7572kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #115:
score: 0
Accepted
time: 15ms
memory: 7584kb
input:
1000 50000 3000000 31 688 31 684 31 63 31 564 31 34 31 288 31 808 31 356 31 327 31 458 31 993 31 344 31 902 31 407 31 37 31 150 31 969 31 323 31 790 31 464 31 230 31 999 31 936 31 106 31 965 31 771 31 663 31 476 31 652 31 991 31 475 31 258 31 395 31 664 31 762 31 934 31 951 31 419 31 84 31 70 31 167...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #116:
score: 0
Accepted
time: 7ms
memory: 7664kb
input:
1000 50000 3000000 740 869 740 437 740 881 740 650 740 319 740 195 740 613 740 606 740 243 740 406 740 669 740 146 740 183 740 999 740 651 740 176 740 97 740 908 740 750 740 609 740 639 740 681 740 755 740 354 740 993 740 334 740 926 740 904 740 184 740 301 740 271 740 859 740 622 740 198 740 716 74...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #117:
score: 0
Accepted
time: 10ms
memory: 7768kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #118:
score: 0
Accepted
time: 8ms
memory: 7548kb
input:
1000 50000 3000000 487 742 487 439 487 698 487 697 487 469 487 812 487 717 487 68 487 951 487 567 487 274 487 535 487 577 487 817 487 350 487 510 487 360 487 66 487 701 487 968 487 931 487 917 487 842 487 626 487 94 487 238 487 887 487 389 487 566 487 257 487 520 487 818 487 373 487 703 487 667 487 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #119:
score: 0
Accepted
time: 5ms
memory: 7756kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #120:
score: 0
Accepted
time: 3ms
memory: 7644kb
input:
1000 50000 3000000 1 2 2 3 3 4 4 5 5 6 6 7 7 8 7 9 1 10 6 11 2 12 7 13 5 14 9 15 2 16 10 17 8 18 2 19 7 20 1 21 8 22 10 23 10 24 5 25 8 26 4 27 9 28 8 29 7 30 6 31 10 32 1 33 6 34 10 35 7 36 8 37 4 38 4 39 4 40 5 41 7 42 8 43 10 44 2 45 6 46 8 47 6 48 3 49 2 50 9 51 5 52 6 53 2 54 5 55 3 56 5 57 10 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #121:
score: 0
Accepted
time: 7ms
memory: 7544kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #122:
score: 0
Accepted
time: 14ms
memory: 7576kb
input:
1000 50000 3000000 1 2 1 3 3 4 4 5 1 6 4 7 7 8 1 9 1 10 9 11 3 12 9 13 10 14 9 15 6 16 9 17 9 18 11 19 18 20 14 21 14 22 19 23 19 24 18 25 23 26 19 27 25 28 19 29 23 30 30 31 31 32 32 33 31 34 29 35 31 36 33 37 32 38 34 39 31 40 37 41 41 42 39 43 34 44 37 45 38 46 45 47 47 48 48 49 43 50 42 51 45 52...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #123:
score: 0
Accepted
time: 10ms
memory: 7752kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #124:
score: 0
Accepted
time: 14ms
memory: 7768kb
input:
1000 50000 3000000 203 717 203 935 203 745 203 404 203 50 203 487 203 1 203 735 203 703 203 702 203 7 203 69 203 581 203 21 203 231 203 257 203 617 203 504 203 916 203 106 203 423 203 869 203 989 203 164 203 767 203 403 203 324 203 967 203 252 203 501 203 795 203 470 203 693 203 929 203 60 203 301 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #125:
score: 0
Accepted
time: 7ms
memory: 7548kb
input:
1000 50000 3000000 617 43 617 699 617 509 617 514 617 670 617 806 617 520 617 722 617 842 617 23 617 826 617 465 617 406 617 851 617 152 617 788 617 268 617 83 617 665 617 581 617 628 617 644 617 20 617 389 617 873 617 484 617 352 617 469 617 538 617 827 617 1 617 492 617 503 617 568 617 531 617 480...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #126:
score: 0
Accepted
time: 12ms
memory: 7644kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 1 7 1 8 1 9 1 10 1 11 2 12 1 13 2 14 2 15 1 16 1 17 2 18 2 19 2 20 2 21 1 22 1 23 2 24 2 25 2 26 2 27 2 28 1 29 1 30 2 31 2 32 2 33 2 34 2 35 2 36 2 37 1 38 2 39 1 40 1 41 2 42 2 43 2 44 2 45 1 46 1 47 1 48 2 49 1 50 2 51 1 52 2 53 1 54 2 55 1 56 2 57 1 58 2 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #127:
score: 0
Accepted
time: 11ms
memory: 7660kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #128:
score: 0
Accepted
time: 11ms
memory: 7576kb
input:
1000 50000 3000000 302 485 553 302 213 553 402 213 983 402 54 983 216 54 202 216 163 202 903 163 45 903 861 45 490 861 643 490 226 643 387 226 382 387 462 382 256 462 187 256 767 187 653 767 443 653 276 443 899 276 632 899 949 632 434 949 332 465 533 332 935 533 214 935 765 214 525 765 781 525 452 7...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #129:
score: 0
Accepted
time: 12ms
memory: 7584kb
input:
1000 50000 3000000 73 347 73 373 73 644 73 235 73 797 73 568 73 208 73 271 73 142 73 278 73 661 73 80 73 65 73 325 73 880 73 579 73 901 73 125 73 172 73 396 73 799 73 202 73 638 73 903 73 635 73 761 73 763 73 352 73 328 73 983 73 480 73 353 73 945 73 419 73 759 73 873 73 24 73 477 73 94 73 714 73 87...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #130:
score: 0
Accepted
time: 7ms
memory: 7580kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #131:
score: 0
Accepted
time: 11ms
memory: 7804kb
input:
1000 50000 3000000 1 2 1 3 2 4 4 5 4 6 5 7 7 8 7 9 8 10 9 11 10 12 11 13 13 14 14 15 14 16 16 17 17 18 17 19 19 20 19 21 20 22 21 23 23 24 24 25 25 26 25 27 26 28 27 29 28 30 30 31 30 32 31 33 33 34 34 35 34 36 35 37 36 38 37 39 38 40 40 41 40 42 41 43 42 44 43 45 45 46 45 47 46 48 47 49 49 50 50 51...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #132:
score: 0
Accepted
time: 10ms
memory: 7644kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #133:
score: 0
Accepted
time: 11ms
memory: 7640kb
input:
1000 50000 3000000 529 998 529 252 529 203 529 592 529 220 529 39 529 29 529 244 529 346 529 426 529 677 529 854 529 599 529 564 529 209 529 990 529 859 529 635 529 132 529 305 529 360 529 266 529 191 529 265 529 639 529 792 529 689 529 228 529 649 529 325 529 760 529 548 529 640 529 171 529 981 529...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #134:
score: 0
Accepted
time: 19ms
memory: 7584kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 1 6 4 7 3 8 8 9 1 10 5 11 8 12 7 13 12 14 12 15 7 16 8 17 10 18 10 19 10 20 16 21 16 22 17 23 21 24 24 25 25 26 25 27 19 28 20 29 28 30 21 31 31 32 25 33 28 34 30 35 33 36 33 37 33 38 29 39 35 40 37 41 41 42 37 43 34 44 39 45 37 46 43 47 45 48 44 49 46 50 41 51 42 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #135:
score: 0
Accepted
time: 12ms
memory: 7588kb
input:
1000 50000 3000000 1 2 2 3 2 4 3 5 5 6 6 7 6 8 8 9 8 10 10 11 10 12 11 13 13 14 13 15 14 16 15 17 16 18 18 19 19 20 20 21 21 22 22 23 22 24 23 25 25 26 25 27 26 28 27 29 29 30 30 31 31 32 31 33 32 34 33 35 35 36 35 37 37 38 37 39 38 40 40 41 41 42 41 43 43 44 43 45 45 46 46 47 46 48 47 49 49 50 50 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #136:
score: 0
Accepted
time: 11ms
memory: 7520kb
input:
1000 50000 3000000 1 2 2 3 2 4 4 5 3 6 6 7 7 8 6 9 7 10 10 11 7 12 8 13 5 14 5 15 5 16 2 17 8 18 2 19 1 20 1 21 3 22 4 23 3 24 10 25 3 26 2 27 7 28 1 29 8 30 6 31 9 32 7 33 6 34 2 35 1 36 6 37 9 38 5 39 6 40 9 41 8 42 7 43 4 44 2 45 8 46 3 47 4 48 2 49 9 50 1 51 2 52 7 53 10 54 9 55 2 56 9 57 5 58 4...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #137:
score: 0
Accepted
time: 10ms
memory: 7576kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #138:
score: 0
Accepted
time: 14ms
memory: 7564kb
input:
1000 50000 3000000 1 2 1 3 1 4 4 5 1 6 2 7 3 8 5 9 8 10 10 11 4 12 6 13 4 14 10 15 12 16 7 17 10 18 11 19 16 20 19 21 12 22 16 23 22 24 23 25 24 26 24 27 18 28 24 29 24 30 21 31 31 32 28 33 26 34 26 35 32 36 30 37 37 38 36 39 39 40 35 41 41 42 36 43 40 44 40 45 43 46 37 47 45 48 41 49 45 50 45 51 45...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #139:
score: 0
Accepted
time: 11ms
memory: 7684kb
input:
1000 50000 3000000 1 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 1 10 1 11 2 12 2 13 2 14 1 15 1 16 2 17 1 18 2 19 1 20 2 21 2 22 1 23 2 24 2 25 2 26 1 27 1 28 1 29 1 30 1 31 1 32 2 33 2 34 1 35 2 36 1 37 1 38 2 39 1 40 1 41 2 42 2 43 2 44 1 45 2 46 2 47 2 48 2 49 2 50 2 51 2 52 2 53 1 54 1 55 2 56 1 57 1 58 2 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #140:
score: 0
Accepted
time: 7ms
memory: 7680kb
input:
1000 50000 3000000 1 2 2 3 2 4 1 5 2 6 2 7 2 8 1 9 1 10 2 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 2 27 1 28 1 29 2 30 1 31 2 32 1 33 1 34 1 35 2 36 1 37 1 38 1 39 2 40 2 41 2 42 2 43 1 44 2 45 1 46 2 47 2 48 2 49 2 50 2 51 1 52 1 53 2 54 2 55 1 56 2 57 2 58 1 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #141:
score: 0
Accepted
time: 14ms
memory: 7648kb
input:
1000 50000 3000000 737 875 737 669 737 564 737 902 737 892 737 141 737 214 737 461 737 374 737 776 737 748 737 657 737 972 737 178 737 689 737 625 737 997 737 483 737 79 737 497 737 616 737 397 737 984 737 20 737 960 737 955 737 647 737 25 737 104 737 534 737 903 737 203 737 160 737 35 737 579 737 6...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #142:
score: 0
Accepted
time: 16ms
memory: 7648kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 1 6 5 7 4 8 5 9 5 10 5 11 8 12 10 13 8 14 10 15 7 16 8 17 11 18 14 19 19 20 18 21 12 22 16 23 19 24 17 25 20 26 25 27 23 28 24 29 27 30 29 31 24 32 29 33 29 34 32 35 30 36 30 37 29 38 29 39 36 40 33 41 39 42 36 43 41 44 35 45 39 46 39 47 46 48 46 49 48 50 43 51 50 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #143:
score: 0
Accepted
time: 18ms
memory: 7636kb
input:
1000 50000 3000000 1 2 1 3 2 4 3 5 2 6 2 7 7 8 4 9 2 10 1 11 3 12 12 13 6 14 11 15 7 16 10 17 3 18 1 19 18 20 1 21 20 22 9 23 13 24 7 25 12 26 21 27 21 28 14 29 4 30 16 31 31 32 24 33 23 34 33 35 18 36 23 37 12 38 32 39 25 40 12 41 10 42 42 43 43 44 23 45 34 46 1 47 23 48 22 49 31 50 20 51 17 52 29 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #144:
score: 0
Accepted
time: 10ms
memory: 7660kb
input:
1000 50000 3000000 351 978 351 494 351 849 351 231 351 649 351 251 351 450 351 914 351 414 351 180 351 955 351 320 351 255 351 175 351 906 351 417 351 667 351 661 351 539 351 265 351 330 351 881 351 496 351 474 351 93 351 333 351 801 351 57 351 880 351 622 351 213 351 510 351 119 351 737 351 181 351...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #145:
score: 0
Accepted
time: 15ms
memory: 7764kb
input:
1000 50000 3000000 853 255 853 350 853 552 853 945 853 502 853 571 853 869 853 857 853 960 853 693 853 825 853 786 853 474 853 542 853 996 853 85 853 367 853 814 853 306 853 137 853 247 853 240 853 827 853 837 853 500 853 904 853 811 853 779 853 546 853 490 853 622 853 753 853 993 853 99 853 967 853...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #146:
score: 0
Accepted
time: 14ms
memory: 7676kb
input:
1000 50000 3000000 121 748 121 430 121 374 121 283 121 41 121 19 121 574 121 436 121 318 121 842 121 101 121 958 121 311 121 100 121 596 121 67 121 78 121 179 121 877 121 307 121 686 121 284 121 652 121 368 121 208 121 292 121 390 121 740 121 323 121 641 121 143 121 750 121 252 121 562 121 615 121 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #147:
score: 0
Accepted
time: 14ms
memory: 7572kb
input:
1000 50000 3000000 1 2 1 3 3 4 2 5 4 6 6 7 2 8 7 9 8 10 6 11 8 12 8 13 7 14 14 15 12 16 1 17 1 18 13 19 18 20 8 21 4 22 22 23 9 24 2 25 16 26 17 27 7 28 4 29 24 30 18 31 28 32 32 33 8 34 4 35 12 36 12 37 2 38 34 39 28 40 22 41 3 42 38 43 7 44 20 45 43 46 30 47 26 48 2 49 27 50 11 51 41 52 46 53 37 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #148:
score: 0
Accepted
time: 7ms
memory: 7568kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #149:
score: 0
Accepted
time: 11ms
memory: 7660kb
input:
1000 50000 3000000 460 205 460 72 460 306 460 776 460 657 460 470 460 140 460 883 460 307 460 664 460 79 460 941 460 119 460 953 460 946 460 961 460 569 460 135 460 662 460 282 460 136 460 257 460 539 460 799 460 653 460 831 460 400 460 857 460 695 460 600 460 76 460 544 460 382 460 950 460 439 460 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #150:
score: 0
Accepted
time: 18ms
memory: 7576kb
input:
1000 50000 3000000 1 2 1 3 1 4 4 5 3 6 5 7 5 8 8 9 3 10 3 11 2 12 6 13 8 14 10 15 7 16 10 17 9 18 11 19 10 20 16 21 20 22 13 23 19 24 17 25 22 26 19 27 19 28 27 29 28 30 24 31 30 32 27 33 24 34 27 35 32 36 29 37 29 38 34 39 32 40 36 41 38 42 37 43 37 44 39 45 39 46 41 47 45 48 41 49 41 50 41 51 44 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #151:
score: 0
Accepted
time: 18ms
memory: 7572kb
input:
1000 50000 3000000 1 2 1 3 3 4 4 5 4 6 4 7 5 8 8 9 7 10 1 11 3 12 11 13 10 14 11 15 9 16 15 17 14 18 11 19 14 20 13 21 17 22 17 23 21 24 23 25 21 26 18 27 23 28 20 29 28 30 21 31 26 32 24 33 27 34 28 35 26 36 35 37 28 38 38 39 32 40 33 41 41 42 42 43 41 44 36 45 43 46 41 47 41 48 46 49 40 50 45 51 4...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #152:
score: 0
Accepted
time: 6ms
memory: 7648kb
input:
1000 50000 3000000 1 2 2 3 2 4 2 5 2 6 2 7 1 8 1 9 2 10 1 11 2 12 2 13 1 14 1 15 2 16 1 17 1 18 1 19 2 20 1 21 1 22 2 23 2 24 1 25 1 26 1 27 2 28 2 29 1 30 1 31 2 32 1 33 1 34 2 35 1 36 2 37 1 38 2 39 1 40 1 41 1 42 1 43 2 44 1 45 2 46 2 47 2 48 2 49 1 50 2 51 2 52 2 53 1 54 2 55 2 56 1 57 1 58 1 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #153:
score: 0
Accepted
time: 18ms
memory: 7776kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 1 6 5 7 6 8 4 9 4 10 2 11 4 12 4 13 4 14 13 15 11 16 15 17 10 18 11 19 16 20 19 21 20 22 21 23 18 24 21 25 21 26 23 27 20 28 26 29 23 30 24 31 22 32 29 33 28 34 31 35 35 36 35 37 33 38 29 39 39 40 39 41 32 42 35 43 40 44 37 45 37 46 42 47 41 48 47 49 42 50 46 51 45...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #154:
score: 0
Accepted
time: 10ms
memory: 7648kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #155:
score: 0
Accepted
time: 7ms
memory: 7776kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #156:
score: 0
Accepted
time: 11ms
memory: 7640kb
input:
1000 50000 3000000 354 596 354 368 354 620 354 837 354 446 354 208 354 411 354 796 354 920 354 130 354 226 354 216 354 494 354 83 354 426 354 284 354 673 354 584 354 871 354 702 354 371 354 614 354 478 354 843 354 339 354 427 354 131 354 212 354 175 354 927 354 166 354 986 354 134 354 448 354 5 354 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #157:
score: 0
Accepted
time: 11ms
memory: 7620kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #158:
score: 0
Accepted
time: 15ms
memory: 7572kb
input:
1000 50000 3000000 1 2 1 3 2 4 4 5 1 6 1 7 2 8 2 9 7 10 7 11 4 12 6 13 9 14 5 15 9 16 8 17 8 18 17 19 18 20 20 21 16 22 13 23 15 24 21 25 25 26 25 27 26 28 25 29 21 30 23 31 22 32 24 33 28 34 30 35 28 36 35 37 31 38 34 39 32 40 38 41 37 42 34 43 37 44 37 45 39 46 39 47 38 48 47 49 47 50 45 51 43 52 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #159:
score: 0
Accepted
time: 11ms
memory: 7672kb
input:
1000 50000 3000000 1 2 1 3 1 4 2 5 1 6 1 7 2 8 1 9 1 10 2 11 2 12 1 13 2 14 2 15 1 16 2 17 1 18 1 19 2 20 2 21 2 22 2 23 2 24 2 25 1 26 1 27 1 28 2 29 2 30 1 31 1 32 2 33 1 34 1 35 1 36 1 37 1 38 2 39 1 40 2 41 1 42 1 43 1 44 2 45 2 46 2 47 2 48 1 49 2 50 1 51 1 52 1 53 1 54 1 55 2 56 1 57 2 58 1 59...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #160:
score: 0
Accepted
time: 17ms
memory: 7508kb
input:
1000 50000 3000000 1 2 1 3 1 4 3 5 4 6 3 7 2 8 3 9 4 10 2 11 6 12 9 13 1 14 3 15 13 16 9 17 5 18 17 19 13 20 15 21 1 22 6 23 13 24 11 25 2 26 1 27 7 28 26 29 14 30 18 31 24 32 19 33 17 34 24 35 20 36 19 37 15 38 36 39 22 40 3 41 40 42 19 43 7 44 20 45 4 46 31 47 42 48 12 49 10 50 18 51 27 52 19 53 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #161:
score: 0
Accepted
time: 13ms
memory: 7572kb
input:
1000 50000 3000000 1 2 2 3 2 4 4 5 3 6 3 7 5 8 5 9 9 10 10 11 1 12 12 13 4 14 11 15 1 16 1 17 13 18 1 19 4 20 1 21 12 22 17 23 21 24 5 25 18 26 25 27 6 28 20 29 29 30 1 31 12 32 25 33 4 34 26 35 24 36 26 37 20 38 4 39 15 40 15 41 2 42 30 43 22 44 16 45 40 46 4 47 19 48 46 49 15 50 42 51 10 52 40 53 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #162:
score: 0
Accepted
time: 6ms
memory: 7792kb
input:
1000 50000 3000000 1 2 2 3 2 4 3 5 5 6 6 7 7 8 3 9 2 10 5 11 7 12 2 13 4 14 5 15 3 16 10 17 2 18 4 19 2 20 9 21 9 22 1 23 3 24 6 25 10 26 2 27 5 28 10 29 9 30 8 31 4 32 3 33 4 34 3 35 2 36 2 37 10 38 2 39 8 40 7 41 3 42 2 43 2 44 3 45 1 46 9 47 3 48 8 49 8 50 8 51 5 52 10 53 7 54 2 55 10 56 4 57 10 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #163:
score: 0
Accepted
time: 2ms
memory: 7756kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #164:
score: 0
Accepted
time: 10ms
memory: 7664kb
input:
1000 50000 3000000 1 2 2 3 3 4 4 5 2 6 1 7 7 8 1 9 9 10 5 11 4 12 5 13 7 14 2 15 9 16 1 17 5 18 2 19 3 20 2 21 2 22 8 23 2 24 1 25 2 26 1 27 10 28 2 29 5 30 5 31 2 32 6 33 7 34 9 35 9 36 1 37 4 38 6 39 3 40 2 41 9 42 4 43 3 44 7 45 4 46 8 47 10 48 8 49 2 50 1 51 1 52 1 53 8 54 9 55 4 56 7 57 8 58 5 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #165:
score: 0
Accepted
time: 15ms
memory: 7640kb
input:
1000 50000 3000000 69 368 769 69 851 769 468 851 868 468 627 868 522 627 754 522 219 754 839 219 478 839 998 478 537 998 320 537 593 320 829 593 536 829 385 536 286 385 808 286 454 808 722 454 491 722 993 491 696 993 833 696 861 833 382 861 503 382 260 503 743 260 850 743 166 850 404 166 79 404 355 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #166:
score: 0
Accepted
time: 11ms
memory: 7752kb
input:
1000 50000 3000000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #167:
score: 0
Accepted
time: 9ms
memory: 7576kb
input:
1000 50000 3000000 1 2 2 3 3 4 4 5 5 6 6 7 7 8 6 9 9 10 6 11 8 12 8 13 10 14 4 15 5 16 5 17 3 18 6 19 3 20 4 21 3 22 9 23 8 24 3 25 7 26 8 27 6 28 4 29 10 30 9 31 9 32 6 33 3 34 9 35 7 36 9 37 3 38 3 39 4 40 10 41 5 42 6 43 7 44 7 45 6 46 6 47 6 48 8 49 2 50 3 51 8 52 9 53 6 54 6 55 1 56 5 57 1 58 3...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #168:
score: 0
Accepted
time: 15ms
memory: 7672kb
input:
1000 50000 3000000 1 2 1 3 3 4 3 5 4 6 6 7 7 8 8 9 8 10 9 11 11 12 11 13 12 14 14 15 14 16 15 17 16 18 18 19 19 20 19 21 21 22 21 23 22 24 24 25 24 26 26 27 26 28 27 29 29 30 30 31 31 32 31 33 32 34 33 35 34 36 35 37 36 38 37 39 38 40 39 41 40 42 41 43 42 44 43 45 45 46 45 47 46 48 48 49 49 50 49 51...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #169:
score: 0
Accepted
time: 5ms
memory: 7568kb
input:
1000 50000 3000000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 2...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #170:
score: -20
Wrong Answer
time: 19ms
memory: 7652kb
input:
1000 50000 3000000 1 2 1 3 1 4 3 5 1 6 5 7 1 8 1 9 1 10 2 11 3 12 6 13 5 14 6 15 10 16 7 17 10 18 13 19 15 20 19 21 20 22 16 23 20 24 21 25 23 26 23 27 27 28 25 29 20 30 24 31 22 32 31 33 29 34 33 35 28 36 33 37 37 38 30 39 31 40 36 41 40 42 39 43 42 44 36 45 43 46 37 47 43 48 44 49 46 50 43 51 45 5...
output:
Different tree
result:
wrong answer Wrong Answer
Subtask #4:
score: 0
Wrong Answer
Test #211:
score: 60
Accepted
time: 7ms
memory: 7576kb
input:
990 8500 300000 1 2 1 3 1 4 1 5 2 6 2 7 2 8 3 9 3 10 3 11 4 12 4 13 4 14 5 15 5 16 5 17 6 18 6 19 6 20 7 21 7 22 7 23 8 24 8 25 8 26 9 27 9 28 9 29 10 30 10 31 10 32 11 33 11 34 11 35 12 36 12 37 12 38 13 39 13 40 13 41 14 42 14 43 14 44 15 45 15 46 15 47 16 48 16 49 16 50 17 51 17 52 17 53 18 54 18...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #212:
score: 0
Accepted
time: 13ms
memory: 7540kb
input:
992 8500 300000 1 2 2 3 3 4 4 5 3 6 5 7 7 8 3 9 3 10 2 11 8 12 4 13 4 14 9 15 11 16 5 17 5 18 7 19 12 20 5 21 5 22 10 23 9 24 23 25 22 26 11 27 21 28 28 29 23 30 19 31 5 32 12 33 9 34 11 35 3 36 19 37 10 38 33 39 12 40 12 41 38 42 31 43 25 44 6 45 5 46 36 47 23 48 28 49 31 50 28 51 25 52 5 53 25 54 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #213:
score: 0
Accepted
time: 3ms
memory: 7568kb
input:
999 8500 300000 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 11 6 12 6 13 7 14 7 15 8 16 8 17 9 18 9 19 10 20 10 21 11 22 11 23 12 24 12 25 13 26 13 27 14 28 14 29 15 30 15 31 16 32 16 33 17 34 17 35 18 36 18 37 19 38 19 39 20 40 20 41 21 42 21 43 22 44 22 45 23 46 23 47 24 48 24 49 25 50 25 51 26 52 26 5...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #214:
score: 0
Accepted
time: 13ms
memory: 7756kb
input:
995 8500 300000 1 2 1 3 2 4 1 5 1 6 2 7 7 8 3 9 6 10 9 11 2 12 1 13 9 14 4 15 9 16 13 17 13 18 14 19 6 20 18 21 21 22 14 23 12 24 19 25 9 26 26 27 16 28 28 29 7 30 14 31 1 32 25 33 32 34 5 35 8 36 22 37 19 38 15 39 13 40 27 41 25 42 18 43 12 44 14 45 8 46 36 47 33 48 45 49 46 50 44 51 47 52 15 53 2 ...
output:
areawavesuitbannerresortfatplasterdeclarationthesearejustrandomwords
result:
ok Orz..Orz..Orz..Orz..Orz
Test #215:
score: -60
Wrong Answer
time: 10ms
memory: 7632kb
input:
999 8500 300000 1 2 2 3 3 4 4 5 2 6 5 7 4 8 8 9 6 10 1 11 7 12 6 13 2 14 2 15 10 16 10 17 7 18 9 19 4 20 4 21 7 22 1 23 4 24 8 25 1 26 8 27 5 28 6 29 3 30 8 31 6 32 8 33 3 34 10 35 9 36 5 37 9 38 3 39 10 40 7 41 6 42 8 43 7 44 2 45 3 46 10 47 2 48 2 49 5 50 6 51 1 52 2 53 3 54 1 55 7 56 5 57 3 58 10...
output:
Too many queries
result:
wrong answer Wrong Answer