QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#68607#5033. Y 君的序列xlwang38 105ms5656kbC++141.1kb2022-12-17 20:03:402022-12-17 20:03:43

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-12-17 20:03:43]
  • 评测
  • 测评结果:38
  • 用时:105ms
  • 内存:5656kb
  • [2022-12-17 20:03:40]
  • 提交

answer

#include <bits/stdc++.h>
#include "seq.h"
#define fr(i,j,k) for(register int i=j;i<=k;++i)
#define rf(i,j,k) for(register int i=j;i>=k;--i)
using namespace std;
const int Maxn=1e5+10;
int b[Maxn];
int a[Maxn];
int n;
int id[Maxn];
int id1[Maxn];
inline void Swap(int x,int y){
	swap(a[x],a[y]);
	id1[a[x]]=x,id1[a[y]]=y;
}
inline void add1(int x,int y){
	a[y]+=a[x]/2;
	a[x]/=2;
}
inline void into(int l,int r){
	fr(i,l+1,r-1) add(id1[i],id1[i+1]);add(id1[r],id1[1]);
	// fr(i,l+1,r-1) printf("add:%d %d\n",id1[i],id1[i+1]);
	// printf("add:%d %d\n",id1[r],id1[1]);
	fr(i,l+1,r-1) add1(id1[i],id1[i+1]);add1(id1[r],id1[1]);
	fr(i,1,n) id1[a[i]]=i;
}
inline void solve(){
	answer(1);
	fr(i,1,n) b[i]=Get(i);
	fr(i,1,n) id[b[i]]=i;
	fr(i,1,n) a[i]=i;
	fr(i,1,n) id1[a[i]]=i;
	// puts("id:");
	// fr(i,1,n) printf("%d ",id[i]);
	// puts("");
	// puts("id1:");
	// fr(i,1,n) printf("%d ",id1[i]);
	// puts("");
	rf(i,n,1){
		// printf("** %d %d\n",id[i],i);
		while(a[id[i]]!=i) into(1,i);
	}
}
void SEQ(int N,int M){
	n=N;
	solve();
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 17
Accepted

Test #1:

score: 17
Accepted
time: 3ms
memory: 3420kb

input:

1 10000000
1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #2:

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

input:

8 10000000
7 6 5 2 8 1 4 3

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #3:

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

input:

9 10000000
9 8 3 1 7 5 4 2 6

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #4:

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

input:

4 10000000
1 4 3 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #5:

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

input:

6 10000000
2 3 4 5 6 1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #6:

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

input:

7 10000000
1 6 7 3 4 5 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #7:

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

input:

9 10000000
1 7 2 6 3 8 5 9 4

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #8:

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

input:

6 10000000
1 6 5 2 3 4

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #9:

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

input:

9 10000000
6 2 4 9 5 1 3 8 7

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #10:

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

input:

2 10000000
1 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #11:

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

input:

5 10000000
5 3 1 4 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #12:

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

input:

10 10000000
3 9 10 6 4 2 8 7 5 1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #13:

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

input:

6 10000000
3 6 4 1 2 5

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #14:

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

input:

4 10000000
4 1 3 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #15:

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

input:

3 10000000
2 3 1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #16:

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

input:

10 10000000
9 8 6 1 7 10 2 5 3 4

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #17:

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

input:

7 10000000
1 7 3 4 5 6 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #18:

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

input:

8 10000000
3 6 7 1 4 8 5 2

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #19:

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

input:

7 10000000
3 5 7 1 2 4 6

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #20:

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

input:

5 10000000
2 4 3 5 1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Subtask #2:

score: 7
Accepted

Test #21:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #22:

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

input:

57 1500000
57 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #23:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #24:

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

input:

53 1500000
53 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #25:

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

input:

76 1500000
76 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #26:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #27:

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

input:

70 1500000
70 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #28:

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

input:

22 1500000
22 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #29:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #30:

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

input:

24 1500000
24 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #31:

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

input:

56 1500000
56 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #32:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #33:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #34:

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

input:

90 1500000
90 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #35:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #36:

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

input:

82 1500000
82 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #37:

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

input:

9 1500000
9 1 2 3 4 5 6 7 8

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #38:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #39:

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

input:

89 1500000
89 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #40:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Subtask #3:

score: 14
Accepted

Dependency #2:

100%
Accepted

Test #41:

score: 14
Accepted
time: 2ms
memory: 3496kb

input:

55 1500000
15 47 8 28 4 22 29 40 37 17 35 20 44 49 9 39 25 34 23 31 45 54 30 24 32 43 41 1 5 48 36 10 50 26 53 2 3 18 52 11 38 21 42 13 6 46 12 55 27 19 7 51 14 33 16

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #42:

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

input:

90 1500000
76 82 61 57 31 21 36 10 51 29 74 72 86 7 6 71 81 45 37 9 2 49 13 67 43 56 17 16 78 47 18 33 55 23 32 64 89 79 80 1 63 14 35 25 38 22 41 84 70 8 40 53 77 27 19 85 65 12 44 42 83 28 11 69 62 30 59 58 87 66 68 4 50 88 90 75 34 73 5 48 15 52 26 3 24 20 39 54 60 46

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #43:

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

input:

149 1500000
68 25 100 50 7 69 107 126 115 104 55 110 128 70 22 13 62 23 99 27 149 105 139 71 11 26 77 3 147 120 63 108 93 148 92 24 41 131 1 35 74 60 135 140 106 88 96 80 129 72 132 109 21 31 38 44 66 123 54 94 16 118 125 86 45 82 145 87 59 122 121 64 5 10 103 4 42 67 141 76 83 32 89 30 142 136 19 3...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #44:

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

input:

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

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #45:

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

input:

138 1500000
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 11...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #46:

score: 0
Accepted
time: 6ms
memory: 3580kb

input:

147 1500000
31 110 63 124 96 1 106 142 97 126 147 51 80 93 7 4 77 136 143 141 123 5 76 95 128 81 15 29 72 30 71 121 33 82 145 39 8 20 50 75 127 94 11 90 47 68 115 129 49 101 14 36 3 144 130 13 16 131 119 60 103 24 42 2 111 62 28 89 19 67 88 58 125 117 54 56 146 61 41 140 109 23 105 21 26 37 52 102 1...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #47:

score: 0
Accepted
time: 5ms
memory: 3500kb

input:

138 1500000
8 13 62 60 27 109 106 104 68 41 82 52 26 116 136 11 63 108 124 86 101 102 135 118 2 138 57 15 76 64 43 81 127 89 132 133 9 36 24 1 4 85 128 35 99 84 58 6 12 69 88 94 123 97 38 14 134 72 51 130 122 28 39 79 95 91 5 117 66 83 100 40 67 115 55 31 20 61 107 121 53 114 77 105 46 78 48 17 92 9...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #48:

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

input:

92 1500000
25 70 58 76 63 26 34 36 33 4 72 66 85 12 42 89 60 13 45 3 49 27 47 74 38 92 31 19 17 82 54 65 8 81 44 68 18 80 7 9 20 37 73 57 1 2 75 86 6 24 32 50 46 78 90 51 43 61 29 10 15 35 62 88 55 21 22 69 28 67 79 59 14 40 23 41 87 5 52 56 53 77 16 83 64 11 91 39 30 71 84 48

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #49:

score: 0
Accepted
time: 6ms
memory: 3416kb

input:

146 1500000
100 55 108 124 68 120 36 102 31 47 96 81 86 126 113 76 54 142 10 41 49 39 44 69 73 78 106 138 70 125 58 110 144 14 123 112 51 72 62 82 26 118 101 130 132 66 104 136 93 128 5 67 23 52 57 119 22 61 16 141 79 109 139 63 56 53 50 46 84 9 20 18 140 8 27 115 42 94 75 1 122 34 95 65 37 116 30 9...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #50:

score: 0
Accepted
time: 6ms
memory: 3496kb

input:

136 1500000
79 118 6 58 51 111 106 71 126 93 129 63 101 13 73 53 45 108 128 3 21 7 65 117 100 35 54 123 52 1 17 44 127 81 26 34 134 16 96 112 92 120 135 136 60 41 83 14 32 5 99 97 24 107 38 33 20 102 74 113 64 8 130 22 84 27 28 19 91 49 82 105 116 31 109 94 114 124 85 29 75 121 66 37 77 90 122 10 95...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #51:

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

input:

22 1500000
5 8 12 21 18 20 9 11 14 1 6 13 16 15 4 22 3 17 19 2 7 10

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #52:

score: 0
Accepted
time: 5ms
memory: 5452kb

input:

140 1500000
140 69 98 58 47 115 112 133 132 131 130 129 45 27 126 125 124 123 55 121 120 119 139 117 118 113 114 135 73 41 61 75 108 122 60 105 109 103 102 44 21 99 138 97 96 95 94 110 92 91 65 89 88 77 86 85 84 83 78 81 80 79 82 104 17 87 56 128 42 71 70 101 26 33 66 90 51 63 59 93 8 62 137 57 74 1...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #53:

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

input:

46 1500000
7 27 15 9 21 33 40 42 30 28 39 35 41 31 17 38 3 1 45 10 24 34 18 26 20 36 8 22 25 5 2 44 19 13 4 11 12 32 46 6 16 29 23 43 14 37

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #54:

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

input:

5 1500000
2 3 5 4 1

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #55:

score: 0
Accepted
time: 6ms
memory: 3504kb

input:

149 1500000
55 115 8 146 145 144 143 116 41 140 70 103 137 87 135 17 43 76 21 130 110 128 62 39 125 28 123 122 51 120 61 72 142 96 148 114 75 90 59 89 56 108 107 64 34 117 47 63 101 52 99 98 97 141 95 94 26 104 44 119 1 88 37 86 85 66 136 82 81 100 57 78 68 132 124 74 73 118 134 112 9 5 67 131 65 13...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #56:

score: 0
Accepted
time: 5ms
memory: 3664kb

input:

136 1500000
77 120 3 11 34 121 63 81 9 10 4 57 13 14 15 16 35 18 19 104 21 22 28 62 98 8 27 60 52 30 31 32 33 103 17 117 54 99 128 72 42 41 82 44 1 46 47 48 49 50 51 40 53 37 73 56 12 58 39 108 61 24 100 135 65 125 67 68 66 70 71 96 55 136 75 23 80 7 79 45 26 123 6 84 85 86 102 88 110 90 91 92 93 11...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #57:

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

input:

25 1500000
13 14 20 17 19 10 5 2 23 15 18 24 3 22 21 16 6 8 9 11 1 12 25 7 4

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #58:

score: 0
Accepted
time: 5ms
memory: 3616kb

input:

145 1500000
1 86 3 25 5 6 4 97 39 10 11 138 13 117 15 16 51 136 131 20 21 22 23 27 139 26 94 105 119 30 31 32 50 79 143 57 34 38 135 54 40 145 33 44 134 46 42 48 49 43 129 7 81 41 87 28 76 98 59 60 61 62 63 68 65 77 67 55 29 102 71 126 85 74 93 47 72 114 37 64 83 82 128 84 73 112 80 88 89 92 91 90 1...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #59:

score: 0
Accepted
time: 4ms
memory: 3628kb

input:

121 1500000
37 18 3 49 48 6 105 90 4 121 113 12 13 14 35 16 95 86 10 62 76 22 23 26 25 24 27 39 15 63 31 80 69 34 29 36 81 11 32 101 40 42 44 20 45 89 114 17 9 50 51 97 87 82 58 56 57 118 59 60 120 53 30 64 112 66 41 109 33 117 47 72 96 88 38 54 84 5 1 8 100 65 83 106 85 2 21 115 46 75 91 92 93 94 7...

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Test #60:

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

input:

24 1500000
18 24 16 4 11 6 15 2 21 20 1 23 17 7 13 9 10 8 19 5 3 22 14 12

output:

Correct Answer :) Congrats!

result:

ok 4 tokens

Subtask #4:

score: 0
Wrong Answer

Dependency #3:

100%
Accepted

Test #61:

score: 0
Wrong Answer
time: 105ms
memory: 3644kb

input:

938 15000000
683 133 390 701 819 645 533 742 83 579 864 53 457 762 203 727 489 497 610 46 895 162 307 44 498 526 511 684 801 513 364 486 269 656 826 931 458 189 178 890 286 34 756 875 150 928 636 855 394 786 220 837 353 799 848 191 387 422 14 669 30 708 348 459 868 148 49 707 694 520 611 267 110 264...

output:

Too many operations

result:

wrong answer 1st words differ - expected: 'Correct', found: 'Too'

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #5:

0%