QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#113342#2779. Detecting Moleculesmyee100 ✓29ms6620kbC++111.6kb2023-06-17 08:15:522023-06-17 08:15:53

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-17 08:15:53]
  • 评测
  • 测评结果:100
  • 用时:29ms
  • 内存:6620kb
  • [2023-06-17 08:15:52]
  • 提交

answer

#include "molecules.h"
#include <algorithm>
#include <stdio.h>
#include <vector>

namespace
{

typedef long long llt;
typedef unsigned uint;typedef unsigned long long ullt;
typedef bool bol;typedef char chr;typedef void voi;
typedef double dbl;
template<typename T>bol _max(T&a,T b){return(a<b)?a=b,true:false;}
template<typename T>bol _min(T&a,T b){return(b<a)?a=b,true:false;}
template<typename T>T lowbit(T n){return n&-n;}
template<typename T>T gcd(T a,T b){return b?gcd(b,a%b):a;}
template<typename T>T lcm(T a,T b){return(a!=0||b!=0)?a/gcd(a,b)*b:(T)0;}
template<typename T>T exgcd(T a,T b,T&x,T&y){if(b!=0){T ans=exgcd(b,a%b,y,x);y-=a/b*x;return ans;}else return y=0,x=1,a;}
template<typename T>T power(T base,T index,T mod)
{
    T ans=1%mod;
    while(index)
    {
        if(index&1)ans=ans*base%mod;
        base=base*base%mod,index>>=1;
    }
    return ans;
}

std::vector<uint> solve(uint l,uint r,std::vector<uint>V)
{
    uint n=V.size();std::vector<uint>P(n);for(uint i=0;i<n;i++)P[i]=i;
    std::sort(P.begin(),P.end(),[&](uint a,uint b){return V[a]<V[b];});
    for(uint i=0,j=0,s=0;i<n;s-=V[P[i++]])
    {
        while(j<n&&s<l)s+=V[P[j++]];
        if(s<l)return{};
        if(s<=r)return std::vector<uint>(P.begin()+i,P.begin()+j);
    }
    return{};
}

}

std::vector<int> find_subset(int l, int u, std::vector<int> w)
{
    std::vector<uint>V;
    for(auto s:w)V.push_back(s);
    V=solve(l,u,V);
    w.clear();
    for(auto s:V)w.push_back(s);
    return w;
}


/*

g++ 235.cpp grader.cpp -o code -std=c++11

*/

詳細信息

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 1ms
memory: 3048kb

input:

1 10 12
9

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 1, answer = NO)

Test #2:

score: 0
Accepted
time: 1ms
memory: 3044kb

input:

1 10 12
13

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 1, answer = NO)

Test #3:

score: 0
Accepted
time: 1ms
memory: 3040kb

input:

1 10 10
10

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 1, answer = YES)

Test #4:

score: 0
Accepted
time: 1ms
memory: 3128kb

input:

2 100 100
50 50

output:

14e047d7a2907b9034950b074822b302
2
0 1

result:

ok OK (n = 2, answer = YES)

Test #5:

score: 0
Accepted
time: 1ms
memory: 3216kb

input:

2 100 100
100 100

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 2, answer = YES)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3052kb

input:

3 5 5
5 5 5

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 3, answer = YES)

Test #7:

score: 0
Accepted
time: 1ms
memory: 3112kb

input:

3 15 15
5 5 5

output:

14e047d7a2907b9034950b074822b302
3
0 1 2

result:

ok OK (n = 3, answer = YES)

Test #8:

score: 0
Accepted
time: 1ms
memory: 3060kb

input:

3 10 10
5 5 5

output:

14e047d7a2907b9034950b074822b302
2
0 1

result:

ok OK (n = 3, answer = YES)

Test #9:

score: 0
Accepted
time: 0ms
memory: 3128kb

input:

3 10 15
5 5 5

output:

14e047d7a2907b9034950b074822b302
2
0 1

result:

ok OK (n = 3, answer = YES)

Test #10:

score: 0
Accepted
time: 1ms
memory: 3112kb

input:

3 5 15
5 5 5

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 3, answer = YES)

Test #11:

score: 0
Accepted
time: 1ms
memory: 3156kb

input:

3 1 5
5 5 5

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 3, answer = YES)

Test #12:

score: 0
Accepted
time: 0ms
memory: 3124kb

input:

3 11 15
5 5 5

output:

14e047d7a2907b9034950b074822b302
3
0 1 2

result:

ok OK (n = 3, answer = YES)

Test #13:

score: 0
Accepted
time: 1ms
memory: 3128kb

input:

3 6 9
5 5 5

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 3, answer = NO)

Test #14:

score: 0
Accepted
time: 1ms
memory: 3052kb

input:

3 1 9
5 5 5

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 3, answer = YES)

Test #15:

score: 0
Accepted
time: 1ms
memory: 3208kb

input:

3 14 19
5 5 5

output:

14e047d7a2907b9034950b074822b302
3
0 1 2

result:

ok OK (n = 3, answer = YES)

Test #16:

score: 0
Accepted
time: 1ms
memory: 3040kb

input:

3 1 4
5 5 5

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 3, answer = NO)

Test #17:

score: 0
Accepted
time: 1ms
memory: 3052kb

input:

3 16 20
5 5 5

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 3, answer = NO)

Test #18:

score: 0
Accepted
time: 1ms
memory: 3216kb

input:

100 971 971
83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 83 ...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Test #19:

score: 0
Accepted
time: 1ms
memory: 3224kb

input:

100 63 63
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

14e047d7a2907b9034950b074822b302
63
62 74 73 72 71 70 69 68 67 66 65 64 63 75 61 60 59 58 57 56 55 54 53 52 51 87 99 98 97 96 95 94 93 92 91 90 89 88 50 86 85 84 83 82 81 80 79 78 77 76 12 24 23 22 21 20 19 18 17 16 15 14 13

result:

ok OK (n = 100, answer = YES)

Test #20:

score: 0
Accepted
time: 0ms
memory: 3060kb

input:

100 150 150
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Subtask #2:

score: 10
Accepted

Dependency #1:

100%
Accepted

Test #21:

score: 10
Accepted
time: 1ms
memory: 3208kb

input:

4 14 15
5 5 6 6

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 4, answer = NO)

Test #22:

score: 0
Accepted
time: 0ms
memory: 3120kb

input:

12 302 304
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
2 3 4 5 6 7

result:

ok OK (n = 12, answer = YES)

Test #23:

score: 0
Accepted
time: 1ms
memory: 3056kb

input:

12 302 304
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
2 3 4 5 6 7

result:

ok OK (n = 12, answer = YES)

Test #24:

score: 0
Accepted
time: 1ms
memory: 3052kb

input:

12 307 317
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 12, answer = NO)

Test #25:

score: 0
Accepted
time: 1ms
memory: 3056kb

input:

12 290 299
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 12, answer = NO)

Test #26:

score: 0
Accepted
time: 1ms
memory: 3160kb

input:

12 290 300
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
0 1 2 3 4 5

result:

ok OK (n = 12, answer = YES)

Test #27:

score: 0
Accepted
time: 1ms
memory: 3224kb

input:

12 306 310
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
6 7 8 9 10 11

result:

ok OK (n = 12, answer = YES)

Test #28:

score: 0
Accepted
time: 1ms
memory: 3100kb

input:

12 303 304
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
3 4 5 6 7 8

result:

ok OK (n = 12, answer = YES)

Test #29:

score: 0
Accepted
time: 1ms
memory: 3136kb

input:

12 302 303
50 50 50 50 50 50 51 51 51 51 51 51

output:

14e047d7a2907b9034950b074822b302
6
2 3 4 5 6 7

result:

ok OK (n = 12, answer = YES)

Test #30:

score: 0
Accepted
time: 1ms
memory: 3096kb

input:

6 16 18
2 2 3 3 3 3

output:

14e047d7a2907b9034950b074822b302
6
0 1 2 3 4 5

result:

ok OK (n = 6, answer = YES)

Test #31:

score: 0
Accepted
time: 1ms
memory: 3052kb

input:

12 18 19
1 1 1 1 1 1 2 2 2 2 2 2

output:

14e047d7a2907b9034950b074822b302
12
0 1 2 3 4 5 6 7 8 9 10 11

result:

ok OK (n = 12, answer = YES)

Test #32:

score: 0
Accepted
time: 1ms
memory: 3212kb

input:

100 50 51
1 1 1 2 2 1 2 2 2 2 2 2 2 2 1 1 2 1 2 2 1 1 1 2 1 1 1 1 2 2 2 2 1 2 1 2 2 1 1 2 1 1 1 2 1 1 1 1 1 1 1 1 1 2 2 1 2 2 1 1 2 2 2 2 1 1 2 1 1 2 1 1 1 2 1 1 2 2 1 1 2 1 2 2 1 1 1 1 1 1 2 1 1 2 1 1 2 2 2 1

output:

14e047d7a2907b9034950b074822b302
50
0 68 67 65 64 59 58 55 52 51 70 49 48 47 46 45 44 42 41 40 85 99 95 94 92 91 89 88 87 86 50 84 81 79 78 75 74 72 71 38 1 2 5 14 15 17 20 21 22 24

result:

ok OK (n = 100, answer = YES)

Test #33:

score: 0
Accepted
time: 0ms
memory: 3044kb

input:

100 500 501
2 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 1 1 2 2 1 2 1 1 2 2 2 1 2 1 1 2 2 1 2 2 1 2 1 2 2 2 1 1 2 1 2 1 1 1 1 1 1 2 1 1 2 2 1 2 1 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 2 2 2 2 1 2 2 1 2 1 2 2 1 2 2 2 1 1 1 1 2 1

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Test #34:

score: 0
Accepted
time: 1ms
memory: 2996kb

input:

100 999 1000
99 100 100 99 100 100 100 100 100 99 100 100 99 100 100 99 100 99 100 99 100 100 99 99 100 99 100 99 99 100 100 100 99 100 99 100 99 100 99 100 99 99 99 100 99 99 100 99 99 99 100 100 99 100 100 100 99 100 100 99 100 99 100 99 99 100 99 99 100 100 100 100 99 100 99 99 99 99 99 100 99 10...

output:

14e047d7a2907b9034950b074822b302
10
27 96 95 68 69 97 94 98 70 71

result:

ok OK (n = 100, answer = YES)

Test #35:

score: 0
Accepted
time: 0ms
memory: 3060kb

input:

100 874 875
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 ...

output:

14e047d7a2907b9034950b074822b302
25
38 26 27 28 29 30 31 32 33 34 35 36 37 1 39 40 41 42 43 44 45 46 47 48 49

result:

ok OK (n = 100, answer = YES)

Test #36:

score: 0
Accepted
time: 1ms
memory: 3168kb

input:

100 900 901
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 ...

output:

14e047d7a2907b9034950b074822b302
25
86 85 84 83 82 81 80 79 78 77 76 75 87 88 89 90 91 92 93 94 95 96 97 98 99

result:

ok OK (n = 100, answer = YES)

Test #37:

score: 0
Accepted
time: 1ms
memory: 3048kb

input:

100 887 888
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 ...

output:

14e047d7a2907b9034950b074822b302
25
11 12 14 13 23 22 21 20 19 18 17 16 15 86 85 84 83 82 81 80 79 78 77 76 75

result:

ok OK (n = 100, answer = YES)

Subtask #3:

score: 12
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #38:

score: 12
Accepted
time: 0ms
memory: 3216kb

input:

4 15 17
6 8 8 7

output:

14e047d7a2907b9034950b074822b302
2
3 1

result:

ok OK (n = 4, answer = YES)

Test #39:

score: 0
Accepted
time: 1ms
memory: 3056kb

input:

4 10 20
15 17 16 18

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 4, answer = YES)

Test #40:

score: 0
Accepted
time: 1ms
memory: 3068kb

input:

28 990 1000
100 100 100 100 100 100 100 100 100 100 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109

output:

14e047d7a2907b9034950b074822b302
10
1 2 3 4 5 6 7 8 9 0

result:

ok OK (n = 28, answer = YES)

Test #41:

score: 0
Accepted
time: 1ms
memory: 3064kb

input:

27 990 999
101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 110 110 110 110 110 110 110 110 110

output:

14e047d7a2907b9034950b074822b302
9
26 25 24 23 22 21 20 19 18

result:

ok OK (n = 27, answer = YES)

Test #42:

score: 0
Accepted
time: 1ms
memory: 3048kb

input:

90 990 999
101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 101 102 103 104 105 106 107 108 109 1...

output:

14e047d7a2907b9034950b074822b302
9
81 82 83 84 85 86 87 88 89

result:

ok OK (n = 90, answer = YES)

Test #43:

score: 0
Accepted
time: 1ms
memory: 3160kb

input:

100 86 93
15 15 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 21 21 21 21 21 21 21...

output:

14e047d7a2907b9034950b074822b302
5
1 0 67 46 66

result:

ok OK (n = 100, answer = YES)

Test #44:

score: 0
Accepted
time: 1ms
memory: 3100kb

input:

100 87 94
19 19 19 19 19 19 19 19 19 19 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20...

output:

14e047d7a2907b9034950b074822b302
4
33 31 98 99

result:

ok OK (n = 100, answer = YES)

Test #45:

score: 0
Accepted
time: 1ms
memory: 3124kb

input:

10 100 110
12 18 18 17 19 13 16 11 11 20

output:

14e047d7a2907b9034950b074822b302
7
8 0 5 6 3 1 2

result:

ok OK (n = 10, answer = YES)

Test #46:

score: 0
Accepted
time: 1ms
memory: 3120kb

input:

100 990 1000
10 17 17 10 17 10 20 10 18 19 16 10 12 16 13 16 10 20 19 10 19 20 19 14 10 15 11 14 13 15 10 17 17 17 20 17 11 19 16 19 17 15 19 12 18 16 14 18 19 12 14 20 13 19 12 17 15 12 11 14 20 17 10 10 10 15 12 18 11 10 13 18 16 17 14 13 13 19 13 17 16 13 20 17 13 12 19 14 20 16 11 11 16 18 19 10...

output:

14e047d7a2907b9034950b074822b302
73
63 62 64 69 30 24 19 16 11 5 3 95 7 90 26 58 36 91 68 98 54 43 66 57 97 49 12 85 28 70 52 14 75 76 78 81 84 87 59 23 74 46 27 50 56 41 65 25 29 92 72 45 38 80 96 89 15 13 10 73 79 83 99 1 31 32 61 33 4 35 40 55 2

result:

ok OK (n = 100, answer = YES)

Test #47:

score: 0
Accepted
time: 1ms
memory: 3048kb

input:

100 990 1000
81 81 82 81 85 80 84 82 82 81 80 81 84 80 81 81 81 85 82 82 83 80 82 84 81 80 83 83 81 84 82 84 85 84 82 82 85 81 82 82 81 85 82 82 80 82 82 80 84 85 84 81 83 80 84 85 82 80 80 84 81 81 83 84 80 85 83 81 80 81 81 85 82 83 83 85 81 82 81 82 81 82 84 85 85 83 81 81 80 83 85 81 84 83 82 80...

output:

14e047d7a2907b9034950b074822b302
12
43 34 42 35 38 39 52 74 73 89 93 66

result:

ok OK (n = 100, answer = YES)

Test #48:

score: 0
Accepted
time: 1ms
memory: 3108kb

input:

100 990 1000
90 88 89 89 90 89 89 90 89 89 89 89 88 89 88 88 88 89 89 90 90 89 88 89 89 89 90 89 88 90 89 90 90 90 90 90 88 88 88 88 89 90 90 88 89 88 88 89 90 89 88 89 88 89 89 89 88 89 89 90 90 89 90 89 89 90 90 90 90 90 90 88 89 90 88 90 89 88 89 89 90 89 88 90 90 88 89 89 90 90 89 88 88 88 90 90...

output:

14e047d7a2907b9034950b074822b302
11
83 35 84 33 32 31 88 89 48 7 29

result:

ok OK (n = 100, answer = YES)

Test #49:

score: 0
Accepted
time: 0ms
memory: 3128kb

input:

100 990 1000
90 90 91 92 92 91 90 92 92 90 91 91 90 91 92 92 92 92 91 91 90 91 91 91 91 92 91 90 90 90 92 90 92 92 92 91 91 92 92 91 92 91 91 91 92 91 90 92 90 92 90 91 90 92 90 91 92 91 90 90 92 90 90 91 92 91 92 90 92 90 92 91 92 91 90 91 91 92 91 90 90 91 92 91 90 91 91 90 91 91 91 91 90 92 90 90...

output:

14e047d7a2907b9034950b074822b302
11
62 27 28 29 31 46 48 50 52 54 58

result:

ok OK (n = 100, answer = YES)

Test #50:

score: 0
Accepted
time: 1ms
memory: 3056kb

input:

100 990 1000
12 10 10 7 5 10 7 11 12 10 5 7 12 6 9 8 6 9 12 12 5 8 5 12 10 5 7 12 9 5 5 7 12 8 10 10 12 12 12 7 7 5 7 7 11 10 6 11 7 5 12 5 12 6 7 8 11 8 7 11 6 9 6 10 9 5 6 7 10 9 9 7 5 7 9 9 8 8 5 12 6 8 10 7 11 10 12 12 9 6 7 11 8 11 10 6 11 8 6 11

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Test #51:

score: 0
Accepted
time: 1ms
memory: 3128kb

input:

100 900 990
992 999 999 1000 992 995 1000 994 996 994 992 1000 993 993 999 997 993 1000 996 994 1000 996 995 996 994 995 998 994 996 996 999 1000 991 995 996 997 992 995 992 992 996 997 1000 1000 996 997 993 993 999 991 992 991 994 998 1000 991 998 995 993 999 994 997 991 998 992 996 997 992 992 996...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Test #52:

score: 0
Accepted
time: 0ms
memory: 3064kb

input:

100 750 990
597 672 703 628 535 656 604 697 600 572 724 732 701 719 554 628 502 510 692 681 502 511 562 586 691 650 556 681 549 517 717 651 508 710 692 669 622 623 592 664 595 600 721 587 602 717 560 557 599 687 504 690 637 564 715 512 673 641 561 718 654 563 711 688 656 622 538 556 560 542 687 640 ...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 100, answer = NO)

Test #53:

score: 0
Accepted
time: 1ms
memory: 3040kb

input:

100 990 1000
10 12 10 12 11 13 11 10 10 12 13 11 11 12 16 13 11 10 10 20 13 11 11 13 11 14 16 15 11 11 11 11 11 13 16 12 10 16 10 11 12 19 10 14 12 20 10 18 11 11 12 13 14 11 17 10 17 14 10 12 11 13 13 11 11 10 17 11 11 13 11 18 12 15 12 10 12 11 11 11 16 14 14 11 15 16 11 15 11 12 13 10 10 10 10 14...

output:

14e047d7a2907b9034950b074822b302
85
55 58 46 65 42 38 36 75 18 17 91 92 8 94 93 2 7 68 77 53 6 39 60 70 63 31 67 4 98 64 48 49 83 12 11 16 88 21 22 86 24 32 79 78 28 29 30 59 1 97 72 74 76 89 96 3 35 40 50 9 44 13 99 33 23 20 90 15 69 10 62 61 51 5 95 25 57 82 81 52 43 27 84 87 73

result:

ok OK (n = 100, answer = YES)

Test #54:

score: 0
Accepted
time: 0ms
memory: 3044kb

input:

100 990 1000
19 20 20 20 20 19 18 18 16 17 18 19 18 17 18 15 16 19 18 18 20 16 19 20 20 16 17 19 18 18 20 20 17 19 18 18 17 19 14 14 14 17 19 20 17 17 19 16 17 18 19 13 13 20 17 19 19 18 19 11 16 20 20 20 19 20 19 17 18 13 15 19 19 18 20 20 17 18 18 16 19 19 19 13 18 18 17 15 19 18 18 19 20 17 18 16...

output:

14e047d7a2907b9034950b074822b302
59
69 83 52 51 39 40 38 70 15 87 21 16 79 47 25 8 95 60 36 67 32 41 44 45 48 54 76 13 97 86 26 93 9 7 12 49 78 10 77 29 6 73 57 94 68 14 28 18 19 90 89 35 34 85 84 50 99 98 71

result:

ok OK (n = 100, answer = YES)

Test #55:

score: 0
Accepted
time: 0ms
memory: 3136kb

input:

100 770 781
78 79 71 71 81 74 71 71 71 72 71 71 71 73 71 80 82 76 75 71 77 71 78 79 71 71 81 74 71 71 71 72 71 71 71 73 71 80 82 76 75 71 77 71 78 79 71 71 81 74 71 71 71 72 71 71 71 73 71 80 82 76 75 71 77 71 78 79 71 71 81 74 71 71 71 72 71 71 71 73 71 80 82 76 75 71 77 71 78 79 71 71 81 74 71 71 ...

output:

14e047d7a2907b9034950b074822b302
11
52 69 68 65 63 58 56 55 54 72 51

result:

ok OK (n = 100, answer = YES)

Test #56:

score: 0
Accepted
time: 0ms
memory: 3048kb

input:

100 86 93
15 15 15 15 15 15 15 15 15 15 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21...

output:

14e047d7a2907b9034950b074822b302
6
1 0 9 8 7 6

result:

ok OK (n = 100, answer = YES)

Test #57:

score: 0
Accepted
time: 1ms
memory: 3216kb

input:

100 87 94
19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 19 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 25 25 25 25 25 25...

output:

14e047d7a2907b9034950b074822b302
4
62 60 91 92

result:

ok OK (n = 100, answer = YES)

Subtask #4:

score: 15
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Test #58:

score: 15
Accepted
time: 1ms
memory: 3240kb

input:

8000 10000 10000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 8000, answer = NO)

Test #59:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

10000 9990 10000
15 17 18 19 17 16 11 10 10 14 15 14 12 16 18 14 16 12 10 20 20 20 14 12 15 15 13 19 14 18 12 19 17 10 20 20 12 20 16 10 12 15 17 14 10 17 14 13 13 18 11 16 17 14 20 11 14 17 12 13 15 14 16 12 15 13 14 12 11 11 20 19 19 10 14 14 19 16 11 16 14 11 15 11 10 19 14 20 14 12 10 20 14 14 1...

output:

14e047d7a2907b9034950b074822b302
999
4766 4753 7089 5846 4757 2907 6240 2905 4758 2901 2119 672 6873 6232 7330 6874 7093 7638 8572 2889 2888 2885 5119 5258 6225 1929 8578 2874 9488 690 5853 692 9088 6269 5832 2971 2970 9094 5834 7659 4728 6264 4729 6259 9691 2124 8547 6257 8585 7655 9087 1908 650 29...

result:

ok OK (n = 10000, answer = YES)

Test #60:

score: 0
Accepted
time: 2ms
memory: 3316kb

input:

10000 9990 10000
110 102 108 101 102 103 105 108 107 107 104 102 101 105 103 108 104 105 108 105 103 107 104 107 106 106 106 107 110 102 110 107 101 101 103 109 103 106 101 109 109 106 109 101 106 104 103 100 110 105 102 105 104 104 107 101 100 106 102 100 106 108 106 108 108 104 106 110 102 103 100...

output:

14e047d7a2907b9034950b074822b302
100
7784 4580 7832 1770 7826 4590 4591 735 4595 1761 4604 4605 743 4625 4642 7788 7840 7775 7765 4653 4666 4671 763 4680 4689 4695 4703 7728 7727 773 7725 4724 4542 1803 7961 4499 7951 7940 4513 7935 1796 4522 4526 4530 704 7909 4540 7905 7721 4548 7897 4552 4558 789...

result:

ok OK (n = 10000, answer = YES)

Test #61:

score: 0
Accepted
time: 2ms
memory: 3232kb

input:

10000 9990 10000
1006 1008 1001 1001 1003 1002 1001 1002 1000 1003 1007 1000 1010 1004 1004 1003 1008 1001 1008 1006 1000 1006 1001 1004 1005 1003 1003 1007 1008 1005 1010 1000 1008 1006 1003 1002 1008 1002 1007 1010 1006 1003 1007 1000 1005 1009 1010 1001 1003 1009 1004 1005 1002 1002 1004 1010 101...

output:

14e047d7a2907b9034950b074822b302
10
3404 6595 6587 3367 3372 3373 3384 6553 6552 6551

result:

ok OK (n = 10000, answer = YES)

Test #62:

score: 0
Accepted
time: 2ms
memory: 3228kb

input:

10000 9990 10000
999 1000 1003 995 1000 1001 1000 998 997 1004 1001 995 1002 1002 996 1001 998 995 1000 999 995 1005 1002 999 1000 998 1004 1001 998 1003 1005 1003 1002 1000 1002 1004 997 999 996 1002 995 1004 1001 995 996 1003 999 996 996 1001 998 1003 1002 996 1000 1005 1000 999 1000 1003 1001 996...

output:

14e047d7a2907b9034950b074822b302
10
5321 3818 4561 5428 5349 4523 4492 3841 4543 4526

result:

ok OK (n = 10000, answer = YES)

Test #63:

score: 0
Accepted
time: 2ms
memory: 3344kb

input:

10000 9900 10000
5 63 89 55 98 80 2 65 77 49 48 32 81 45 24 20 69 35 47 99 49 54 58 42 81 14 32 60 24 64 21 85 17 73 52 58 7 12 41 89 14 87 25 98 22 6 19 71 97 60 5 32 89 67 35 45 19 64 53 46 69 87 4 89 61 87 96 20 81 90 25 53 56 46 18 82 87 63 75 26 4 66 89 36 47 68 2 91 17 14 19 1 4 69 20 13 86 70...

output:

14e047d7a2907b9034950b074822b302
1356
8510 4013 6010 6362 4929 4073 4112 2893 7852 9488 8680 5954 935 5950 7836 4159 7825 7794 4972 1017 296 7365 3946 5032 7975 8727 91 6814 5601 8086 7303 8087 8100 9671 7595 7601 1808 2678 4605 696 692 748 5769 8642 206 2741 7658 4705 9877 5648 801 5860 4412 4407 9...

result:

ok OK (n = 10000, answer = YES)

Test #64:

score: 0
Accepted
time: 2ms
memory: 3228kb

input:

10000 5000 5010
1002 1005 1004 1007 1008 1010 1007 1006 1006 1001 1006 1010 1001 1000 1002 1000 1005 1000 1003 1001 1001 1005 1002 1003 1005 1000 1002 1006 1010 1008 1009 1009 1005 1003 1000 1008 1006 1000 1004 1007 1002 1001 1006 1009 1009 1005 1002 1001 1007 1009 1001 1004 1000 1000 1010 1010 1001...

output:

14e047d7a2907b9034950b074822b302
5
2126 2166 7694 7695 7703

result:

ok OK (n = 10000, answer = YES)

Test #65:

score: 0
Accepted
time: 2ms
memory: 3228kb

input:

10000 5000 5010
1018 1020 1018 1010 1016 1013 1016 1019 1020 1014 1010 1012 1011 1020 1017 1014 1015 1011 1016 1012 1015 1017 1018 1018 1019 1019 1010 1019 1015 1011 1017 1019 1014 1020 1011 1020 1019 1011 1019 1019 1015 1017 1018 1016 1012 1013 1019 1010 1014 1020 1010 1016 1013 1010 1018 1011 1011...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #66:

score: 0
Accepted
time: 2ms
memory: 3284kb

input:

10000 5000 10000
4116 4619 2651 283 1977 855 4395 605 2703 4749 3776 3178 1233 4865 1180 3451 1578 736 1067 2021 366 353 2170 2481 1055 1933 4664 628 2203 2253 1568 1266 1616 3376 3029 2100 348 859 3273 2527 3556 3690 778 3290 3411 4765 2730 3031 4212 914 407 3130 401 492 1101 1069 3112 633 4220 309...

output:

14e047d7a2907b9034950b074822b302
155
4099 7616 347 6191 7959 1907 2995 1184 4199 5707 9052 8947 5144 5059 8901 5573 8451 4050 1321 6712 7583 5788 8196 2565 8427 4088 6178 4324 7637 597 636 1032 8476 7534 4292 224 8012 7358 495 2241 8597 6373 8629 8564 9482 6676 635 9923 9182 4943 9811 4711 3746 3347...

result:

ok OK (n = 10000, answer = YES)

Test #67:

score: 0
Accepted
time: 2ms
memory: 3224kb

input:

10000 1 5000
8522 9028 7028 9515 9940 7552 7459 8966 9499 9089 7812 9081 8474 6940 7387 6968 6860 6377 8447 5572 9516 5822 9500 5805 5762 5412 5336 9452 8709 9129 6532 8428 7946 7188 9056 7977 7017 8641 5041 6857 8571 5314 8129 5538 6323 9228 7141 7627 5733 7862 7615 5880 6657 6066 9606 8427 7010 80...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #68:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 9900 10000
171 102 110 200 111 157 151 108 117 117 134 104 125 104 105 118 147 143 161 102 155 120 134 123 106 112 120 142 140 124 162 101 141 115 155 106 119 151 108 116 115 101 114 107 142 154 101 142 108 132 125 110 138 116 103 117 118 113 111 144 135 112 106 102 118 121 102 131 107 100 139...

output:

14e047d7a2907b9034950b074822b302
99
2744 2048 2043 5355 7725 240 7749 2021 5332 1949 2742 7822 517 1906 2745 5274 7914 5208 528 7551 5570 7436 5561 852 7486 266 2716 7549 7975 2115 2737 7618 7622 5447 5438 7653 7661 2966 8311 5001 180 8380 4889 8448 4837 8494 8281 1373 8557 4711 8610 4688 8661 4664 ...

result:

ok OK (n = 10000, answer = YES)

Test #69:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

10000 9900 10000
150 149 198 194 172 188 136 181 196 185 146 197 193 164 196 190 196 197 187 178 188 135 115 167 197 196 179 167 190 191 187 170 191 100 191 191 200 191 187 133 175 193 129 193 180 180 193 190 145 160 199 168 162 188 168 189 170 199 167 189 197 153 180 184 198 195 198 189 163 188 200...

output:

14e047d7a2907b9034950b074822b302
99
3620 5794 5742 3575 8906 8896 8875 3578 5682 8865 8853 3598 3607 7802 3524 5592 3703 3707 5578 7839 3817 3819 8756 3823 5553 7897 5552 7655 7580 6159 3182 3201 9179 6131 3238 3279 7647 6119 9102 582 3323 5511 6072 3359 9050 3365 986 3371 6016 5982 5824 970 3467 35...

result:

ok OK (n = 10000, answer = YES)

Test #70:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

10000 9438 9464
386 381 387 388 383 364 385 368 369 389 370 364 390 364 364 364 364 379 375 364 366 364 382 372 364 364 364 376 380 365 364 364 364 364 374 371 373 364 364 364 364 384 377 378 364 364 364 367 364 364 364 364 386 381 387 388 383 364 385 368 369 389 370 364 390 364 364 364 364 379 375 ...

output:

14e047d7a2907b9034950b074822b302
26
3741 7328 7329 7330 7331 3749 7337 7343 7345 3743 3742 3755 3740 3738 3737 3736 7346 7347 7348 3732 3731 3730 7320 7317 3777 3776

result:

ok OK (n = 10000, answer = YES)

Test #71:

score: 0
Accepted
time: 0ms
memory: 3240kb

input:

10000 616 623
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 3...

output:

14e047d7a2907b9034950b074822b302
17
342 341 340 339 338 337 335 334 333 332 331 336 3670 3669 3668 3667 3666

result:

ok OK (n = 10000, answer = YES)

Test #72:

score: 0
Accepted
time: 2ms
memory: 3264kb

input:

10000 617 624
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 3...

output:

14e047d7a2907b9034950b074822b302
16
3330 3339 3338 3337 3336 3335 3334 3333 3332 3331 3340 3329 3328 3327 3326 3325

result:

ok OK (n = 10000, answer = YES)

Test #73:

score: 0
Accepted
time: 2ms
memory: 3276kb

input:

10000 6999 7000
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

output:

14e047d7a2907b9034950b074822b302
70
3330 3339 3338 3337 3336 3335 3334 3333 3332 3331 3340 3329 3328 3327 3326 3325 3324 3323 3322 3321 3350 3359 3358 3357 3356 3355 3354 3353 3352 3351 3320 3349 3348 3347 3346 3345 3344 3343 3342 3341 3291 3300 3299 3298 3297 3296 3295 3294 3293 3292 3301 3290 3289...

result:

ok OK (n = 10000, answer = YES)

Test #74:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 7070 7071
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

output:

14e047d7a2907b9034950b074822b302
70
8330 8331 8332 8333 8334 8335 8336 8337 8338 8329 8328 8327 8326 8325 8324 8323 8322 8321 8320 8349 8358 8357 8356 8355 8354 8353 8352 8351 8350 8339 8348 8347 8346 8345 8344 8343 8342 8341 8340 8290 8299 8298 8297 8296 8295 8294 8293 8292 8291 8300 8289 8288 8287...

result:

ok OK (n = 10000, answer = YES)

Test #75:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

10000 7035 7036
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 ...

output:

14e047d7a2907b9034950b074822b302
70
1658 1657 1656 1655 1654 1653 1652 1679 1650 1649 1648 1647 1646 1645 1644 1643 1680 1662 1661 1678 1677 1676 1675 1674 1673 1672 1671 1669 1668 1667 1666 1665 1664 1663 1670 8330 8331 8332 8333 8334 8335 8336 8337 8338 8329 8328 8327 8326 8325 8324 8323 8322 8321...

result:

ok OK (n = 10000, answer = YES)

Test #76:

score: 0
Accepted
time: 1ms
memory: 3080kb

input:

865 9400 9500
984 950 1028 963 963 1042 956 985 1044 983 953 974 1038 1003 989 1014 958 999 973 953 955 1042 963 979 995 1002 993 985 971 982 1017 1021 1033 1023 1034 969 961 970 1019 959 1000 993 1009 1007 959 965 1025 982 952 957 1031 1014 999 950 958 1016 959 964 955 984 974 1019 1015 1006 1007 1...

output:

14e047d7a2907b9034950b074822b302
9
418 503 324 519 826 127 337 179 247

result:

ok OK (n = 865, answer = YES)

Test #77:

score: 0
Accepted
time: 0ms
memory: 3056kb

input:

820 9460 9600
1032 1026 975 980 967 991 1002 1042 1037 991 979 1011 965 986 969 978 1018 996 1029 968 1019 1026 984 1021 1002 974 1028 999 1020 979 1020 966 977 987 988 968 1045 995 1001 1038 1046 994 1015 1014 1012 1037 1012 1022 1022 1025 992 995 989 1018 981 1003 983 989 1018 962 988 1034 1047 10...

output:

14e047d7a2907b9034950b074822b302
10
86 661 296 503 636 588 189 419 774 441

result:

ok OK (n = 820, answer = YES)

Subtask #5:

score: 23
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #78:

score: 23
Accepted
time: 1ms
memory: 3192kb

input:

7500 90000 100000
10 10 9 10 10 10 9 9 9 9 10 9 9 9 9 10 9 10 9 9 9 10 9 9 9 9 10 9 9 9 9 9 9 10 10 9 9 9 9 9 10 10 9 10 10 10 10 9 9 10 9 10 10 10 10 9 10 9 10 9 9 9 9 10 10 10 10 9 10 9 10 9 10 10 9 10 10 10 9 9 10 9 9 9 9 10 10 9 9 9 9 10 10 10 10 9 9 9 10 10 9 10 10 9 10 9 10 10 10 9 9 10 9 9 10...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 7500, answer = NO)

Test #79:

score: 0
Accepted
time: 2ms
memory: 3400kb

input:

10000 499990 500000
12 17 13 11 10 18 16 11 17 16 18 18 15 19 19 17 12 15 11 18 12 11 16 20 20 18 14 14 20 19 12 16 11 10 13 16 14 19 14 13 17 12 12 17 11 15 15 10 15 10 15 10 17 11 18 14 13 15 11 11 16 14 11 14 19 10 12 19 10 11 10 18 14 17 17 13 13 11 14 11 12 16 20 10 14 11 12 12 18 19 17 11 20 1...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #80:

score: 0
Accepted
time: 0ms
memory: 3236kb

input:

10000 499985 500000
14 15 9 11 8 13 11 9 9 12 7 15 6 12 15 7 10 11 11 9 13 10 7 12 12 7 15 15 8 6 9 14 8 11 5 12 12 8 11 11 9 11 14 8 9 8 10 5 10 6 9 14 5 12 11 6 9 10 15 13 12 9 6 12 15 8 15 14 5 12 7 5 11 15 12 10 14 5 9 9 11 6 9 8 7 15 11 5 13 14 12 5 10 12 6 14 6 6 15 12 11 6 10 8 8 6 15 8 15 12...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #81:

score: 0
Accepted
time: 2ms
memory: 3240kb

input:

10000 499963 500000
6 31 20 20 30 16 17 35 36 12 16 31 30 26 33 8 24 17 11 14 20 20 18 33 7 11 24 11 12 22 9 34 33 15 31 5 7 27 30 30 39 14 30 27 18 28 22 29 28 11 32 26 29 19 29 36 8 9 28 40 15 35 6 18 31 19 16 35 10 13 7 40 30 16 40 9 36 16 15 31 30 16 19 7 17 6 17 38 26 31 14 36 31 35 12 32 24 20...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #82:

score: 0
Accepted
time: 2ms
memory: 3220kb

input:

10000 499922 500000
23 15 61 31 51 45 26 40 63 52 24 10 5 26 12 72 42 45 48 70 61 15 32 67 40 15 34 48 20 7 66 14 75 61 27 31 33 29 71 44 74 66 75 19 62 29 67 51 63 19 67 9 59 7 61 68 26 56 5 61 17 77 27 53 63 40 35 20 61 11 35 35 15 38 60 79 70 64 70 10 60 50 50 65 64 15 17 8 43 36 34 50 44 70 53 1...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #83:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 499990 500000
106 105 108 108 103 108 104 104 104 110 106 105 105 101 110 106 110 105 103 106 108 106 103 108 109 108 109 102 101 107 108 106 102 109 108 110 103 104 108 106 100 107 101 103 106 110 108 104 107 104 101 101 100 100 108 104 101 102 108 102 100 108 105 109 104 104 108 109 101 100 ...

output:

14e047d7a2907b9034950b074822b302
4892
3125 3126 3127 8458 1127 4579 5949 7034 5952 1120 9446 5953 4573 1187 1205 3077 9406 9407 9409 4601 7735 8475 5893 8439 5895 5903 4598 8471 7739 8463 1157 5915 3108 6007 8412 4542 1051 4540 3183 7006 1039 4526 6005 1056 9481 1032 6009 3196 1028 7758 9486 8402 32...

result:

ok OK (n = 10000, answer = YES)

Test #84:

score: 0
Accepted
time: 2ms
memory: 3204kb

input:

10000 499990 500000
1009 1004 1008 1006 1000 1008 1007 1005 1004 1007 1008 1003 1004 1004 1007 1007 1006 1004 1008 1003 1005 1004 1001 1002 1001 1004 1008 1005 1001 1002 1009 1004 1007 1005 1004 1009 1009 1003 1006 1001 1004 1008 1000 1006 1000 1001 1004 1002 1000 1001 1008 1006 1010 1006 1000 1004 ...

output:

14e047d7a2907b9034950b074822b302
500
1928 1983 1977 7221 7226 7230 7251 7255 7264 7269 7287 7295 1993 1927 7300 1920 7320 7325 1904 7334 1896 1891 1884 7373 2061 7022 7027 2104 7034 7043 2088 7059 2081 7065 7067 2069 7381 7089 7099 7103 2040 7122 2034 7148 2008 7191 7193 7601 1744 1743 7536 1730 172...

result:

ok OK (n = 10000, answer = YES)

Test #85:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 499990 500000
1005 1000 999 1000 999 1003 995 999 1003 1000 996 995 998 1002 997 997 998 997 1005 1001 995 1001 1002 998 1005 1004 1004 1000 996 1005 999 999 1001 1004 1002 1004 997 998 1003 998 996 997 1001 1005 997 998 997 998 999 1001 998 998 1004 1003 996 1005 1003 995 996 1004 996 1005 10...

output:

14e047d7a2907b9034950b074822b302
502
9659 4508 6575 6983 2332 7248 8658 2709 1641 6986 8190 8193 2699 2967 2344 8577 2693 8197 1639 8662 7244 7361 3342 3340 8182 3338 2941 2327 7338 2200 1872 1358 7653 2781 7179 3330 2195 7977 7774 2771 1404 8607 2369 2681 2978 3288 2799 6620 7974 7816 7167 6975 216...

result:

ok OK (n = 10000, answer = YES)

Test #86:

score: 0
Accepted
time: 2ms
memory: 3340kb

input:

10000 499990 500000
249991 249996 249991 249995 249996 249990 249997 249999 249998 249997 249999 249994 249995 249992 249996 249992 249994 249997 249991 249991 249993 249994 249999 249993 249996 249994 249991 249991 249992 249990 249997 249995 249997 249994 249998 249995 249995 249997 249997 249992 ...

output:

14e047d7a2907b9034950b074822b302
2
4812 6533

result:

ok OK (n = 10000, answer = YES)

Test #87:

score: 0
Accepted
time: 2ms
memory: 3244kb

input:

10000 499990 500000
250002 250010 250001 250005 250004 250004 250006 250001 250007 250005 250010 250007 250006 250006 250009 250004 250005 250001 250002 250005 250008 250007 250002 250006 250011 250003 250001 250011 250011 250006 250010 250003 250007 250004 250005 250009 250009 250006 250006 250010 ...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #88:

score: 0
Accepted
time: 1ms
memory: 3284kb

input:

10000 498000 500000
1898 941 715 1289 1699 146 783 294 1942 1425 1161 1136 125 1571 1968 284 1398 1079 1523 841 491 1395 1400 552 189 1487 44 731 1174 1380 1242 1030 28 1371 416 1044 353 1087 1601 1537 665 28 407 163 950 1468 817 805 641 1325 986 500 1961 1238 1686 1956 1727 615 1807 466 1215 335 77...

output:

14e047d7a2907b9034950b074822b302
2292
2376 7879 9633 6445 4472 2736 1282 4051 8482 9171 515 6763 7062 4525 8007 4121 7429 7468 8624 8969 8370 4276 3803 6285 4335 7050 8788 8452 8618 2625 6785 3274 7758 3103 9313 4206 8340 1845 2964 1115 7224 3476 6887 7327 8661 4900 5453 3328 3089 4982 1549 2034 688...

result:

ok OK (n = 10000, answer = YES)

Test #89:

score: 0
Accepted
time: 2ms
memory: 3232kb

input:

10000 1 250000
441359 443476 304675 277100 388670 274105 382629 265924 310290 351746 474734 363122 351251 350414 339970 386366 374692 303022 479747 333446 408453 329948 403114 301142 443860 329797 481655 448685 320171 283558 414848 419401 390466 296617 303157 325911 493139 378274 423695 440715 35350...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 10000, answer = NO)

Test #90:

score: 0
Accepted
time: 2ms
memory: 3236kb

input:

10000 499900 500000
131 112 121 118 129 128 142 111 120 123 107 158 102 167 105 111 130 145 149 101 111 107 180 123 112 103 154 104 121 103 106 120 132 125 107 108 144 127 106 106 102 101 124 102 105 118 105 122 145 108 151 170 115 104 141 102 103 134 120 146 101 164 133 132 101 107 120 133 150 101 ...

output:

14e047d7a2907b9034950b074822b302
4671
3972 6573 5463 9288 517 9298 7239 6580 3744 9315 9244 2065 2066 489 2079 483 3431 7193 8200 1288 3740 6528 6507 628 1986 9141 7318 8263 9150 9152 2602 5522 7183 2598 591 587 3749 5512 3855 574 573 9220 4040 5263 9566 4729 7078 7075 9579 7068 7882 6088 1538 6668 ...

result:

ok OK (n = 10000, answer = YES)

Test #91:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 499900 500000
198 192 195 200 149 183 171 200 176 192 200 183 166 200 186 192 199 165 188 182 182 184 176 192 185 198 190 181 175 198 163 195 191 194 191 184 177 181 188 147 198 187 187 139 160 162 195 163 196 188 149 194 167 189 193 184 170 194 183 190 163 194 181 153 194 193 177 188 185 198 ...

output:

14e047d7a2907b9034950b074822b302
3355
7052 2489 1542 5821 9275 212 5546 3881 9273 5568 1885 6290 3319 1519 7906 1895 1345 551 1855 7639 1850 1333 2466 6188 5805 599 1830 9610 8909 7355 3985 8684 1801 1352 6225 8678 2461 3754 3485 1961 5885 618 6270 4510 7586 5183 4507 1937 4505 8753 5863 6362 4252 7...

result:

ok OK (n = 10000, answer = YES)

Test #92:

score: 0
Accepted
time: 2ms
memory: 3336kb

input:

10000 292658 292741
3530 3527 3528 3527 3538 3527 3527 3527 3598 3576 3591 3587 3527 3527 3527 3572 3527 3594 3546 3527 3603 3527 3569 3596 3548 3563 3541 3527 3584 3599 3527 3535 3604 3558 3567 3536 3559 3527 3550 3527 3590 3527 3578 3592 3560 3564 3589 3554 3581 3527 3552 3527 3527 3527 3527 3527 ...

output:

14e047d7a2907b9034950b074822b302
83
5558 5580 5577 5576 5571 5570 5569 5568 5567 5566 5565 5564 5560 5559 5581 5552 5551 5550 5549 5547 5545 5543 5541 5540 5533 5532 5531 5602 5623 5622 5621 5620 5618 5617 5615 5614 5612 5609 5605 5603 5530 5601 5599 5597 5596 5595 5592 5591 5589 5588 5587 5585 5583...

result:

ok OK (n = 10000, answer = YES)

Test #93:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

10000 150496 150503
995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 995 ...

output:

14e047d7a2907b9034950b074822b302
151
305 306 307 308 309 310 311 312 266 375 252 253 254 255 256 257 258 259 260 261 262 263 264 265 374 267 268 269 270 271 272 273 274 275 276 277 278 279 280 360 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 314 361 362 363 364 365 366 367 368 369 370...

result:

ok OK (n = 10000, answer = YES)

Test #94:

score: 0
Accepted
time: 2ms
memory: 3276kb

input:

10000 150497 150504
999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 999 ...

output:

14e047d7a2907b9034950b074822b302
150
6355 6356 6357 6358 6359 6314 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6313 6343 6344 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6330 6329 6342 6341 6340 6339 6338 6337 6335 6334 6333 6332 6331 6336 9671 9670 966...

result:

ok OK (n = 10000, answer = YES)

Test #95:

score: 0
Accepted
time: 2ms
memory: 3352kb

input:

10000 166144 166145
707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 ...

output:

14e047d7a2907b9034950b074822b302
235
3330 3339 3338 3337 3336 3335 3334 3333 3332 3331 3340 3329 3328 3327 3326 3325 3324 3323 3322 3321 3350 3359 3358 3357 3356 3355 3354 3353 3352 3351 3320 3349 3348 3347 3346 3345 3344 3343 3342 3341 3291 3300 3299 3298 3297 3296 3295 3294 3293 3292 3301 3290 328...

result:

ok OK (n = 10000, answer = YES)

Test #96:

score: 0
Accepted
time: 2ms
memory: 3280kb

input:

10000 166380 166381
707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 ...

output:

14e047d7a2907b9034950b074822b302
235
8330 8331 8332 8333 8334 8335 8336 8337 8338 8329 8328 8327 8326 8325 8324 8323 8322 8321 8320 8349 8358 8357 8356 8355 8354 8353 8352 8351 8350 8339 8348 8347 8346 8345 8344 8343 8342 8341 8340 8290 8299 8298 8297 8296 8295 8294 8293 8292 8291 8300 8289 8288 828...

result:

ok OK (n = 10000, answer = YES)

Test #97:

score: 0
Accepted
time: 2ms
memory: 3444kb

input:

10000 166262 166263
707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 707 ...

output:

14e047d7a2907b9034950b074822b302
235
1624 1623 1573 1582 1581 1580 1579 1578 1577 1576 1575 1574 1583 1572 1571 1570 1569 1568 1567 1566 1565 1719 1592 1601 1600 1599 1598 1597 1596 1595 1594 1593 1718 1591 1590 1589 1588 1587 1586 1585 1584 1690 1699 1698 1697 1696 1695 1694 1693 1692 1691 1700 168...

result:

ok OK (n = 10000, answer = YES)

Subtask #6:

score: 31
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #98:

score: 31
Accepted
time: 0ms
memory: 3056kb

input:

1 2147483647 2147483647
2147483647

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 1, answer = YES)

Test #99:

score: 0
Accepted
time: 1ms
memory: 3160kb

input:

3 2147483646 2147483646
1073741823 1073741823 1073741823

output:

14e047d7a2907b9034950b074822b302
2
0 1

result:

ok OK (n = 3, answer = YES)

Test #100:

score: 0
Accepted
time: 1ms
memory: 3040kb

input:

3 2147483647 2147483647
2147483646 2147483646 2147483646

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 3, answer = NO)

Test #101:

score: 0
Accepted
time: 0ms
memory: 3132kb

input:

3 2147483647 2147483647
2147483647 2147483647 2147483647

output:

14e047d7a2907b9034950b074822b302
1
0

result:

ok OK (n = 3, answer = YES)

Test #102:

score: 0
Accepted
time: 15ms
memory: 5572kb

input:

150000 1999800000 2000000000
10000 10000 9999 10000 10000 10000 10000 9999 9999 9999 9999 9999 10000 10000 10000 9999 10000 10000 10000 10000 10000 9999 10000 10000 10000 9999 10000 10000 9999 10000 10000 9999 10000 9999 9999 9999 10000 9999 9999 10000 9999 10000 10000 9999 10000 10000 9999 9999 100...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 150000, answer = NO)

Test #103:

score: 0
Accepted
time: 24ms
memory: 6616kb

input:

200000 2147482647 2147483647
1000881 1000204 1000557 1000103 1000077 1000651 1000856 1000142 1000278 1000437 1000334 1000305 1000524 1000568 1000448 1000426 1000803 1000048 1000223 1000656 1000400 1000940 1000851 1000873 1000513 1000530 1000671 1000616 1000849 1000502 1000290 1000631 1000545 1000086...

output:

14e047d7a2907b9034950b074822b302
2147
113101 194661 198850 68297 150123 101095 99613 51187 36535 140533 150493 162095 123582 142703 107056 51515 8394 58255 177341 187168 19821 99969 152617 181168 24470 169684 48859 65053 127436 51349 108507 25407 126854 181857 106648 108908 195300 125883 46873 11275...

result:

ok OK (n = 200000, answer = YES)

Test #104:

score: 0
Accepted
time: 27ms
memory: 6608kb

input:

200000 2147482647 2147483647
1000000940 1000000028 1000000651 1000000573 1000000544 1000000704 1000000798 1000000191 1000000855 1000000733 1000000503 1000000124 1000000221 1000000221 1000000447 1000000566 1000000384 1000000227 1000000640 1000000441 1000000461 1000000598 1000000692 1000000402 1000000...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 200000, answer = NO)

Test #105:

score: 0
Accepted
time: 26ms
memory: 6492kb

input:

200000 2147482647 2147483647
100755 100780 100522 100700 100032 100747 100980 100558 100123 100316 100239 100875 100696 100148 100950 100655 100150 100869 100342 100612 100727 100989 100693 100078 100054 100788 100369 100263 100687 100418 100755 100868 100725 100776 100405 100413 100420 100500 10018...

output:

14e047d7a2907b9034950b074822b302
21463
46652 177932 79810 147247 177888 125705 169345 139552 26425 111859 70203 83610 42813 29333 82770 84381 52798 71541 128179 61740 167789 93180 22844 139497 128682 196495 135479 121112 162096 84016 61247 155898 170677 175265 148479 184951 93368 184518 109796 12125...

result:

ok OK (n = 200000, answer = YES)

Test #106:

score: 0
Accepted
time: 29ms
memory: 6404kb

input:

200000 1 2147483647
2038859253 1499203314 10909175 1880585676 1573440095 344260723 1588568397 210368189 6812953 1265645596 1520454889 992822991 989654503 870547703 994730574 1279457160 1825165850 564048876 840745578 475190827 1399002333 1430839580 315149115 653539506 2066067509 1507619790 887028328 ...

output:

14e047d7a2907b9034950b074822b302
1
177667

result:

ok OK (n = 200000, answer = YES)

Test #107:

score: 0
Accepted
time: 11ms
memory: 6448kb

input:

200000 999999990 1000000010
1000007 1000003 1000006 1000003 1000000 1000006 1000007 1000002 1000002 1000007 1000003 1000007 1000000 1000008 1000008 1000010 1000003 1000007 1000008 1000000 1000000 1000008 1000009 1000007 1000009 1000009 1000008 1000003 1000010 1000005 1000002 1000000 1000007 1000010 ...

output:

14e047d7a2907b9034950b074822b302
1000
166548 43867 112470 112465 166518 43879 16853 112442 112430 166545 166546 112481 112425 112422 112419 43896 112418 112400 166585 112399 43913 112386 16882 166455 112575 166459 112573 16891 43831 112547 166463 112530 166468 166605 166472 16878 112518 166484 16648...

result:

ok OK (n = 200000, answer = YES)

Test #108:

score: 0
Accepted
time: 24ms
memory: 6516kb

input:

200000 999999990 1000000010
999990 999997 999995 999998 999997 999999 999995 999996 999995 999998 999993 999991 999995 999997 1000000 999998 999995 999998 999999 999992 1000000 999998 999999 999999 1000000 999997 999994 999995 999993 999991 999992 999996 999994 999993 1000000 999997 999996 999994 99...

output:

14e047d7a2907b9034950b074822b302
1000
128332 128454 79741 159199 159953 159040 160216 160219 79166 81279 27790 76 1763 185948 28458 198140 3133 1980 198142 2294 3686 2348 199149 2674 2675 185955 1449 947 186430 3132 1764 1772 2008 28268 27791 1856 186521 2819 198666 199752 73 28113 27940 857 199041 ...

result:

ok OK (n = 200000, answer = YES)

Test #109:

score: 0
Accepted
time: 21ms
memory: 6536kb

input:

200000 2147482647 2147483647
506 484 257 74 167 122 266 636 965 736 209 829 729 385 729 788 428 834 793 172 588 580 85 774 792 945 450 755 500 519 19 705 289 315 481 444 782 78 14 129 730 496 453 2 553 746 346 871 774 614 198 461 808 789 885 636 323 163 491 718 48 513 597 108 427 242 921 30 913 544 ...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 200000, answer = NO)

Test #110:

score: 0
Accepted
time: 26ms
memory: 6616kb

input:

200000 2147418111 2147483647
68491 86066 89911 110849 67242 84920 110829 121465 82843 96033 114551 102823 110431 114377 130663 98523 76069 116791 87530 98768 95027 78502 123169 71958 86076 83039 96768 123192 120967 90079 84382 98128 117653 72176 116457 98122 80633 68442 65911 91713 68069 72084 99443...

output:

14e047d7a2907b9034950b074822b302
30427
107438 41249 68814 145442 132167 89886 166975 162531 169893 57096 174233 15642 40646 131938 85209 193602 153324 147043 172635 101905 80448 187183 46831 59633 183344 157207 143766 137648 112395 17274 76972 31479 111076 109083 164731 15509 159016 53098 194817 102...

result:

ok OK (n = 200000, answer = YES)

Test #111:

score: 0
Accepted
time: 29ms
memory: 6616kb

input:

200000 1 1073741823
2122273326 2026741636 1655296611 1308691987 1949310447 1239872779 2061108244 1287860451 1934687688 1145562798 1260201132 1372056221 1868528774 1195841078 1492285038 1552476003 1377448263 2107991357 1814416215 1391444993 1728935354 1073874747 1683953828 1518271720 1201514948 17608...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 200000, answer = NO)

Test #112:

score: 0
Accepted
time: 13ms
memory: 6456kb

input:

200000 2147483547 2147483647
107 115 140 156 117 106 127 113 109 133 200 102 105 112 102 118 111 154 124 106 119 175 100 114 135 162 112 141 120 100 113 125 111 105 103 101 136 153 144 146 200 156 101 115 126 182 143 140 102 117 124 112 148 107 105 138 123 101 146 107 147 167 165 108 124 141 117 109...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 200000, answer = NO)

Test #113:

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

input:

200000 2147483547 2147483647
156 157 105 128 197 184 175 172 187 177 195 172 197 132 178 190 194 197 171 197 178 186 172 198 179 155 178 196 191 198 174 149 143 192 168 179 195 193 190 162 179 199 145 114 181 152 106 199 180 199 183 127 186 127 161 182 183 187 184 150 164 192 189 127 198 197 135 126...

output:

14e047d7a2907b9034950b074822b302
0

result:

ok OK (n = 200000, answer = NO)

Test #114:

score: 0
Accepted
time: 18ms
memory: 6568kb

input:

200000 968564 968688
7812 7812 7812 7914 7812 7812 7812 7812 7812 7812 7871 7907 7822 7813 7812 7812 7934 7812 7906 7841 7812 7853 7812 7897 7935 7812 7812 7812 7909 7812 7812 7812 7826 7812 7875 7848 7858 7812 7812 7885 7904 7926 7812 7840 7812 7812 7905 7812 7812 7896 7812 7881 7812 7878 7917 7812...

output:

14e047d7a2907b9034950b074822b302
124
111118 111105 111106 111108 111109 111110 111111 111112 111113 111104 111119 111121 111124 111126 111129 111130 111131 111133 111103 111102 111100 111099 111098 111096 111095 111087 111086 111084 111082 111079 111078 111077 111075 111179 111164 111165 111166 1111...

result:

ok OK (n = 200000, answer = YES)

Test #115:

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

input:

200000 15004996 15005003
9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 9995 ...

output:

14e047d7a2907b9034950b074822b302
1501
6998 6997 6996 6995 6994 6993 7021 7030 7029 7028 7027 7026 7025 7024 7023 7022 6992 7020 7019 7018 7017 7016 7015 7014 7013 6963 6972 6971 6970 6969 6968 6967 6966 6965 6964 6973 6962 6961 6960 6959 6958 6957 6956 6955 6954 6982 6991 6990 6989 6988 6987 6986 69...

result:

ok OK (n = 200000, answer = YES)

Test #116:

score: 0
Accepted
time: 18ms
memory: 6508kb

input:

200000 15004997 15005004
9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 9999 ...

output:

14e047d7a2907b9034950b074822b302
1500
126499 126498 126497 126496 126505 126494 126493 126492 126491 126490 126489 126488 126487 126486 126514 126523 126522 126521 126520 126519 126518 126517 126516 126515 126406 126513 126512 126511 126510 126509 126508 126507 126506 126299 126308 126307 126306 126...

result:

ok OK (n = 200000, answer = YES)

Test #117:

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

input:

200000 715767639 715767640
46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 463...

output:

14e047d7a2907b9034950b074822b302
15446
66662 66674 66673 66672 66671 66670 66669 66668 66667 66666 66665 66664 66663 66675 66661 66660 66659 66658 66657 66656 66655 66654 66653 66652 66651 66687 66698 66697 66696 66695 66694 66693 66692 66691 66690 66689 66688 66650 66686 66685 66684 66683 66682 666...

result:

ok OK (n = 200000, answer = YES)

Test #118:

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

input:

200000 715783086 715783087
46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 463...

output:

14e047d7a2907b9034950b074822b302
15446
166662 166663 166664 166665 166666 166667 166668 166669 166670 166671 166672 166673 166661 166660 166659 166658 166657 166656 166655 166654 166653 166652 166651 166650 166686 166697 166696 166695 166694 166693 166692 166691 166690 166689 166688 166687 166674 16...

result:

ok OK (n = 200000, answer = YES)

Test #119:

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

input:

200000 715775363 715775364
46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 46340 463...

output:

14e047d7a2907b9034950b074822b302
15446
27574 27573 27572 27571 27570 27569 27568 27567 27566 27565 27698 27710 27709 27708 27707 27706 27705 27704 27703 27702 27701 27700 27699 27711 27697 27696 27695 27694 27693 27692 27691 27690 27689 27688 27687 27723 27734 27733 27732 27731 27730 27729 27728 277...

result:

ok OK (n = 200000, answer = YES)

Test #120:

score: 0
Accepted
time: 8ms
memory: 6532kb

input:

200000 9400 9500
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 100...

output:

14e047d7a2907b9034950b074822b302
9
67038 66166 193055 121737 138602 10434 24425 177458 109428

result:

ok OK (n = 200000, answer = YES)

Test #121:

score: 0
Accepted
time: 17ms
memory: 6428kb

input:

200000 9460 9600
1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 100...

output:

14e047d7a2907b9034950b074822b302
10
87946 160059 29023 170111 113556 157124 7252 97464 93547 155839

result:

ok OK (n = 200000, answer = YES)