QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#126773 | #2783. Unscrambling a Messy Bug | somethingnew# | 100 ✓ | 1ms | 4304kb | C++20 | 1.7kb | 2023-07-18 23:30:24 | 2024-07-04 00:45:19 |
Judging History
answer
// ↘ ⬇ ⬇ ⬇ ⬇ ⬇ ↙
// ➡ @roadfromroi ⬅
// ↗ ⬆ ⬆ ⬆ ⬆ ⬆ ↖
#include <iostream>
#include "vector"
#include "algorithm"
#include "numeric"
#include "climits"
#include "iomanip"
#include "bitset"
#include "cmath"
#include "map"
#include "deque"
#include "array"
#include "set"
#include "messy.h"
#define all(x) x.begin(), x.end()
using namespace std;
int n;
void recadd(vector<int> allones, vector<int> onetounder, int bt) {
if (allones.size() == 1)return;
string seba(n, '0');
for (auto i : onetounder)
seba[i] = '1';
vector<int> s0, s1;
for (auto i : allones) {
if (i & (1 << bt))
s1.push_back(i);
else
s0.push_back(i);
}
for (auto i : s1) {
string de = seba;
de[i] = '1';
add_element(de);
}
recadd(s1, s0, bt + 1);
recadd(s0, s1, bt + 1);
}
void gobk(vector<int> allones, vector<int> onetounder, int bt, vector<int> &realvals) {
if (allones.size() == 1)return;
string seba(n, '0');
for (auto i : onetounder)
seba[i] = '1';
vector<int> s0, s1;
for (auto i : allones) {
string de = seba;
de[i] = '1';
if (check_element(de))
s1.push_back(i);
else
s0.push_back(i);
}
for (auto i : s1) {
realvals[i] += (1 << bt);
}
gobk(s1, s0, bt + 1, realvals);
gobk(s0, s1, bt + 1, realvals);
}
vector<int> restore_permutation(int N, int w, int r) {
n = N;
vector<int> a(n), b;
for (int i = 0; i < n; ++i) {
a[i] = i;
}
vector<int> res(n);
recadd(a, b, 0);
compile_set();
gobk(a, b, 0, res);
return res;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 0ms
memory: 3736kb
input:
8 256 256 0 5 2 3 4 1 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 5 2 3 4 1 6 7
result:
ok n = 8
Test #2:
score: 0
Accepted
time: 0ms
memory: 4092kb
input:
8 256 256 0 1 2 3 4 6 5 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 6 5 7
result:
ok n = 8
Test #3:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
8 256 256 5 1 2 3 4 0 6 7
output:
098d134608c94f7413faac591054ee35 OK 5 1 2 3 4 0 6 7
result:
ok n = 8
Test #4:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
8 256 256 5 1 2 3 4 0 6 7
output:
098d134608c94f7413faac591054ee35 OK 5 1 2 3 4 0 6 7
result:
ok n = 8
Test #5:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
8 256 256 0 1 6 3 4 5 2 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 6 3 4 5 2 7
result:
ok n = 8
Test #6:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
8 256 256 0 2 1 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 2 1 3 4 5 6 7
result:
ok n = 8
Test #7:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
8 256 256 0 1 2 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 5 6 7
result:
ok n = 8
Test #8:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
8 256 256 0 1 2 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 5 6 7
result:
ok n = 8
Test #9:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
8 256 256 0 1 2 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 5 6 7
result:
ok n = 8
Test #10:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
8 256 256 5 1 2 3 4 0 6 7
output:
098d134608c94f7413faac591054ee35 OK 5 1 2 3 4 0 6 7
result:
ok n = 8
Test #11:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
8 256 256 0 1 2 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 5 6 7
result:
ok n = 8
Test #12:
score: 0
Accepted
time: 0ms
memory: 4096kb
input:
8 256 256 0 1 2 3 5 4 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 5 4 6 7
result:
ok n = 8
Test #13:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
8 256 256 6 1 2 3 4 5 0 7
output:
098d134608c94f7413faac591054ee35 OK 6 1 2 3 4 5 0 7
result:
ok n = 8
Test #14:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
8 256 256 0 1 2 3 4 5 6 7
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 5 6 7
result:
ok n = 8
Test #15:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
8 256 256 0 1 2 3 7 5 6 4
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 7 5 6 4
result:
ok n = 8
Subtask #2:
score: 18
Accepted
Test #16:
score: 18
Accepted
time: 1ms
memory: 3852kb
input:
32 320 1024 7 31 8 4 28 29 30 9 23 24 20 27 5 16 26 21 12 11 18 6 14 25 1 3 0 13 15 19 2 17 10 22
output:
098d134608c94f7413faac591054ee35 OK 7 31 8 4 28 29 30 9 23 24 20 27 5 16 26 21 12 11 18 6 14 25 1 3 0 13 15 19 2 17 10 22
result:
ok n = 32
Test #17:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
32 320 1024 1 18 12 26 6 27 8 2 25 9 15 4 22 17 20 13 19 16 7 3 10 11 28 24 31 23 30 0 21 29 5 14
output:
098d134608c94f7413faac591054ee35 OK 1 18 12 26 6 27 8 2 25 9 15 4 22 17 20 13 19 16 7 3 10 11 28 24 31 23 30 0 21 29 5 14
result:
ok n = 32
Test #18:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
32 320 1024 6 20 15 23 19 11 1 30 28 5 9 10 8 7 18 16 17 25 24 4 29 26 31 21 14 3 22 0 13 2 27 12
output:
098d134608c94f7413faac591054ee35 OK 6 20 15 23 19 11 1 30 28 5 9 10 8 7 18 16 17 25 24 4 29 26 31 21 14 3 22 0 13 2 27 12
result:
ok n = 32
Test #19:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
32 320 1024 3 28 6 5 7 11 21 30 15 25 14 29 8 31 17 0 26 9 19 16 4 1 24 27 22 13 18 12 10 2 20 23
output:
098d134608c94f7413faac591054ee35 OK 3 28 6 5 7 11 21 30 15 25 14 29 8 31 17 0 26 9 19 16 4 1 24 27 22 13 18 12 10 2 20 23
result:
ok n = 32
Test #20:
score: 0
Accepted
time: 0ms
memory: 4036kb
input:
32 320 1024 2 20 13 1 8 28 18 16 7 10 31 6 15 27 25 12 5 11 21 26 4 22 23 3 14 9 30 19 17 0 29 24
output:
098d134608c94f7413faac591054ee35 OK 2 20 13 1 8 28 18 16 7 10 31 6 15 27 25 12 5 11 21 26 4 22 23 3 14 9 30 19 17 0 29 24
result:
ok n = 32
Test #21:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
32 320 1024 28 25 31 14 7 1 10 9 2 27 3 30 11 0 6 4 8 20 21 23 12 18 29 16 24 26 15 19 17 13 22 5
output:
098d134608c94f7413faac591054ee35 OK 28 25 31 14 7 1 10 9 2 27 3 30 11 0 6 4 8 20 21 23 12 18 29 16 24 26 15 19 17 13 22 5
result:
ok n = 32
Test #22:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
32 320 1024 2 28 23 30 6 18 21 25 7 27 4 17 15 11 19 20 0 31 8 14 1 16 13 5 10 12 3 22 29 9 26 24
output:
098d134608c94f7413faac591054ee35 OK 2 28 23 30 6 18 21 25 7 27 4 17 15 11 19 20 0 31 8 14 1 16 13 5 10 12 3 22 29 9 26 24
result:
ok n = 32
Test #23:
score: 0
Accepted
time: 0ms
memory: 4036kb
input:
32 320 1024 17 6 10 20 19 11 29 3 4 9 22 15 24 0 31 7 21 27 8 28 18 16 14 13 1 23 5 12 25 2 30 26
output:
098d134608c94f7413faac591054ee35 OK 17 6 10 20 19 11 29 3 4 9 22 15 24 0 31 7 21 27 8 28 18 16 14 13 1 23 5 12 25 2 30 26
result:
ok n = 32
Test #24:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
32 320 1024 1 21 17 24 30 22 6 27 9 23 19 20 29 28 18 7 5 2 11 12 10 31 4 16 13 0 8 25 3 14 26 15
output:
098d134608c94f7413faac591054ee35 OK 1 21 17 24 30 22 6 27 9 23 19 20 29 28 18 7 5 2 11 12 10 31 4 16 13 0 8 25 3 14 26 15
result:
ok n = 32
Test #25:
score: 0
Accepted
time: 0ms
memory: 4032kb
input:
32 320 1024 9 6 4 2 21 15 8 14 23 0 28 17 19 30 7 22 5 29 10 3 24 20 1 11 18 13 27 25 16 26 12 31
output:
098d134608c94f7413faac591054ee35 OK 9 6 4 2 21 15 8 14 23 0 28 17 19 30 7 22 5 29 10 3 24 20 1 11 18 13 27 25 16 26 12 31
result:
ok n = 32
Test #26:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
32 320 1024 3 30 6 28 16 17 21 11 20 26 23 27 15 29 10 24 8 25 7 14 0 12 19 18 2 13 4 1 5 31 9 22
output:
098d134608c94f7413faac591054ee35 OK 3 30 6 28 16 17 21 11 20 26 23 27 15 29 10 24 8 25 7 14 0 12 19 18 2 13 4 1 5 31 9 22
result:
ok n = 32
Test #27:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
32 320 1024 7 31 29 13 10 6 16 28 20 18 17 9 0 15 8 23 26 19 25 21 22 5 14 1 27 24 2 12 4 3 30 11
output:
098d134608c94f7413faac591054ee35 OK 7 31 29 13 10 6 16 28 20 18 17 9 0 15 8 23 26 19 25 21 22 5 14 1 27 24 2 12 4 3 30 11
result:
ok n = 32
Test #28:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
32 320 1024 1 16 7 13 11 6 12 24 4 29 15 27 2 28 19 31 17 18 0 10 5 8 20 14 3 23 26 21 25 22 9 30
output:
098d134608c94f7413faac591054ee35 OK 1 16 7 13 11 6 12 24 4 29 15 27 2 28 19 31 17 18 0 10 5 8 20 14 3 23 26 21 25 22 9 30
result:
ok n = 32
Test #29:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
32 320 1024 5 20 2 7 18 30 28 31 8 15 10 19 9 24 6 11 4 12 17 13 1 14 22 27 3 0 23 21 29 16 26 25
output:
098d134608c94f7413faac591054ee35 OK 5 20 2 7 18 30 28 31 8 15 10 19 9 24 6 11 4 12 17 13 1 14 22 27 3 0 23 21 29 16 26 25
result:
ok n = 32
Test #30:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
32 320 1024 10 0 21 15 1 29 16 17 7 8 26 24 4 22 11 14 28 25 18 23 9 30 5 31 13 6 19 3 2 20 27 12
output:
098d134608c94f7413faac591054ee35 OK 10 0 21 15 1 29 16 17 7 8 26 24 4 22 11 14 28 25 18 23 9 30 5 31 13 6 19 3 2 20 27 12
result:
ok n = 32
Subtask #3:
score: 11
Accepted
Test #31:
score: 11
Accepted
time: 0ms
memory: 3752kb
input:
32 1024 320 0 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
output:
098d134608c94f7413faac591054ee35 OK 0 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
result:
ok n = 32
Test #32:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
32 1024 320 0 1 2 3 4 23 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 25 22 5 24 21 26 27 28 29 30 31
output:
098d134608c94f7413faac591054ee35 OK 0 1 2 3 4 23 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 25 22 5 24 21 26 27 28 29 30 31
result:
ok n = 32
Test #33:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
32 1024 320 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
output:
098d134608c94f7413faac591054ee35 OK 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
result:
ok n = 32
Test #34:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
32 1024 320 31 10 29 8 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 30 9 28 7 6 5 4 3 2 1 0
output:
098d134608c94f7413faac591054ee35 OK 31 10 29 8 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 30 9 28 7 6 5 4 3 2 1 0
result:
ok n = 32
Test #35:
score: 0
Accepted
time: 0ms
memory: 4008kb
input:
32 1024 320 5 1 12 16 31 21 2 23 15 29 8 11 18 6 27 10 13 17 30 9 28 24 0 20 3 14 19 4 26 7 22 25
output:
098d134608c94f7413faac591054ee35 OK 5 1 12 16 31 21 2 23 15 29 8 11 18 6 27 10 13 17 30 9 28 24 0 20 3 14 19 4 26 7 22 25
result:
ok n = 32
Test #36:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
32 1024 320 2 19 27 1 11 7 15 14 30 16 18 4 5 10 26 3 17 9 13 21 20 22 24 28 0 31 6 8 23 29 25 12
output:
098d134608c94f7413faac591054ee35 OK 2 19 27 1 11 7 15 14 30 16 18 4 5 10 26 3 17 9 13 21 20 22 24 28 0 31 6 8 23 29 25 12
result:
ok n = 32
Test #37:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
32 1024 320 11 14 27 2 6 12 26 29 0 24 10 16 15 18 30 4 22 17 21 1 19 9 13 25 31 20 28 8 3 23 7 5
output:
098d134608c94f7413faac591054ee35 OK 11 14 27 2 6 12 26 29 0 24 10 16 15 18 30 4 22 17 21 1 19 9 13 25 31 20 28 8 3 23 7 5
result:
ok n = 32
Test #38:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
32 1024 320 31 26 16 1 7 18 13 17 12 23 8 0 29 22 4 28 24 3 5 30 6 9 20 27 11 21 2 10 19 15 25 14
output:
098d134608c94f7413faac591054ee35 OK 31 26 16 1 7 18 13 17 12 23 8 0 29 22 4 28 24 3 5 30 6 9 20 27 11 21 2 10 19 15 25 14
result:
ok n = 32
Test #39:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
32 1024 320 23 3 24 20 29 26 21 2 13 11 6 0 25 31 7 10 5 8 17 12 30 27 16 1 28 18 19 14 22 15 9 4
output:
098d134608c94f7413faac591054ee35 OK 23 3 24 20 29 26 21 2 13 11 6 0 25 31 7 10 5 8 17 12 30 27 16 1 28 18 19 14 22 15 9 4
result:
ok n = 32
Test #40:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
32 1024 320 7 29 31 17 3 14 16 27 9 30 21 23 24 19 25 0 20 5 2 4 8 26 28 12 13 1 6 10 11 18 22 15
output:
098d134608c94f7413faac591054ee35 OK 7 29 31 17 3 14 16 27 9 30 21 23 24 19 25 0 20 5 2 4 8 26 28 12 13 1 6 10 11 18 22 15
result:
ok n = 32
Test #41:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
32 1024 320 0 16 25 4 18 12 22 14 8 19 11 17 1 29 20 2 30 28 26 23 9 27 7 5 31 21 13 3 24 15 10 6
output:
098d134608c94f7413faac591054ee35 OK 0 16 25 4 18 12 22 14 8 19 11 17 1 29 20 2 30 28 26 23 9 27 7 5 31 21 13 3 24 15 10 6
result:
ok n = 32
Test #42:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
32 1024 320 5 4 20 6 15 7 8 27 16 30 26 14 0 19 29 17 9 31 23 3 18 13 21 25 1 22 24 28 10 2 12 11
output:
098d134608c94f7413faac591054ee35 OK 5 4 20 6 15 7 8 27 16 30 26 14 0 19 29 17 9 31 23 3 18 13 21 25 1 22 24 28 10 2 12 11
result:
ok n = 32
Test #43:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
32 1024 320 27 20 15 19 10 3 16 2 21 23 24 8 11 31 5 4 12 30 1 14 6 0 28 22 9 26 13 29 18 7 17 25
output:
098d134608c94f7413faac591054ee35 OK 27 20 15 19 10 3 16 2 21 23 24 8 11 31 5 4 12 30 1 14 6 0 28 22 9 26 13 29 18 7 17 25
result:
ok n = 32
Test #44:
score: 0
Accepted
time: 0ms
memory: 4036kb
input:
32 1024 320 10 18 30 9 15 12 3 1 11 27 19 23 20 7 0 2 29 4 17 6 22 24 26 14 28 31 5 21 8 13 16 25
output:
098d134608c94f7413faac591054ee35 OK 10 18 30 9 15 12 3 1 11 27 19 23 20 7 0 2 29 4 17 6 22 24 26 14 28 31 5 21 8 13 16 25
result:
ok n = 32
Test #45:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
32 1024 320 23 30 22 9 4 12 28 6 20 1 13 19 18 29 11 26 15 10 14 17 8 31 2 3 0 16 21 5 7 25 24 27
output:
098d134608c94f7413faac591054ee35 OK 23 30 22 9 4 12 28 6 20 1 13 19 18 29 11 26 15 10 14 17 8 31 2 3 0 16 21 5 7 25 24 27
result:
ok n = 32
Subtask #4:
score: 21
Accepted
Test #46:
score: 21
Accepted
time: 0ms
memory: 3992kb
input:
128 1792 1792 63 32 97 4 81 96 33 102 23 114 42 103 5 16 104 72 112 37 118 119 69 71 1 3 0 45 86 89 91 58 10 87 31 30 51 8 28 99 123 38 19 78 55 7 126 108 80 47 12 21 74 84 15 122 46 105 48 61 17 125 79 54 127 90 109 68 50 107 62 92 20 64 98 40 111 34 120 82 88 116 75 36 106 93 27 11 52 53 101 73 43...
output:
098d134608c94f7413faac591054ee35 OK 63 32 97 4 81 96 33 102 23 114 42 103 5 16 104 72 112 37 118 119 69 71 1 3 0 45 86 89 91 58 10 87 31 30 51 8 28 99 123 38 19 78 55 7 126 108 80 47 12 21 74 84 15 122 46 105 48 61 17 125 79 54 127 90 109 68 50 107 62 92 20 64 98 40 111 34 120 82 88 116 75 36 106 93...
result:
ok n = 128
Test #47:
score: 0
Accepted
time: 1ms
memory: 3964kb
input:
128 1792 1792 121 124 50 98 74 123 81 12 82 55 104 67 11 40 3 115 19 29 93 2 95 72 4 26 120 73 90 31 25 80 54 78 15 0 61 59 88 66 76 46 92 35 91 9 43 52 41 101 36 87 69 48 64 117 109 18 14 21 118 99 8 57 53 37 77 16 126 68 116 71 127 10 106 65 102 79 20 125 85 62 5 6 70 34 1 97 111 24 58 112 100 39 ...
output:
098d134608c94f7413faac591054ee35 OK 121 124 50 98 74 123 81 12 82 55 104 67 11 40 3 115 19 29 93 2 95 72 4 26 120 73 90 31 25 80 54 78 15 0 61 59 88 66 76 46 92 35 91 9 43 52 41 101 36 87 69 48 64 117 109 18 14 21 118 99 8 57 53 37 77 16 126 68 116 71 127 10 106 65 102 79 20 125 85 62 5 6 70 34 1 97...
result:
ok n = 128
Test #48:
score: 0
Accepted
time: 0ms
memory: 4192kb
input:
128 1792 1792 43 75 60 106 28 16 77 115 87 41 6 96 37 19 121 5 62 81 68 7 49 89 32 116 122 113 20 112 22 76 64 126 44 36 51 34 13 91 105 102 50 27 54 63 46 82 118 11 110 65 78 61 17 42 2 66 26 114 71 25 70 69 124 45 90 38 59 92 3 8 0 72 52 53 79 88 56 15 39 35 30 21 100 9 119 108 80 31 4 101 18 85 1...
output:
098d134608c94f7413faac591054ee35 OK 43 75 60 106 28 16 77 115 87 41 6 96 37 19 121 5 62 81 68 7 49 89 32 116 122 113 20 112 22 76 64 126 44 36 51 34 13 91 105 102 50 27 54 63 46 82 118 11 110 65 78 61 17 42 2 66 26 114 71 25 70 69 124 45 90 38 59 92 3 8 0 72 52 53 79 88 56 15 39 35 30 21 100 9 119 1...
result:
ok n = 128
Test #49:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
128 1792 1792 51 58 101 40 30 43 54 8 78 80 14 31 39 79 27 29 97 73 5 11 123 32 105 88 64 35 59 38 120 6 34 100 7 55 83 104 3 2 87 94 125 90 41 28 72 70 114 106 86 89 121 16 77 126 107 103 48 119 42 10 117 50 96 127 91 44 69 20 82 4 99 12 68 56 53 26 19 113 102 81 60 62 1 116 52 75 47 63 25 45 49 24...
output:
098d134608c94f7413faac591054ee35 OK 51 58 101 40 30 43 54 8 78 80 14 31 39 79 27 29 97 73 5 11 123 32 105 88 64 35 59 38 120 6 34 100 7 55 83 104 3 2 87 94 125 90 41 28 72 70 114 106 86 89 121 16 77 126 107 103 48 119 42 10 117 50 96 127 91 44 69 20 82 4 99 12 68 56 53 26 19 113 102 81 60 62 1 116 5...
result:
ok n = 128
Test #50:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
128 1792 1792 101 97 113 64 127 49 104 10 76 110 38 14 121 98 48 72 1 83 86 123 118 29 55 9 68 109 11 7 22 16 60 70 25 125 124 28 89 96 117 75 71 91 99 56 106 66 0 57 45 34 41 17 78 32 82 85 21 35 102 103 107 50 23 90 126 69 6 15 42 62 53 120 47 3 20 111 95 33 84 88 105 19 43 67 37 92 40 51 5 119 11...
output:
098d134608c94f7413faac591054ee35 OK 101 97 113 64 127 49 104 10 76 110 38 14 121 98 48 72 1 83 86 123 118 29 55 9 68 109 11 7 22 16 60 70 25 125 124 28 89 96 117 75 71 91 99 56 106 66 0 57 45 34 41 17 78 32 82 85 21 35 102 103 107 50 23 90 126 69 6 15 42 62 53 120 47 3 20 111 95 33 84 88 105 19 43 6...
result:
ok n = 128
Test #51:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
128 1792 1792 90 116 67 11 104 17 80 20 106 22 111 112 110 122 91 21 117 8 62 4 100 48 14 124 89 102 92 81 33 57 109 65 43 1 60 66 97 6 72 79 105 123 83 7 41 76 108 44 19 96 50 0 93 35 46 28 16 37 107 87 55 56 64 31 61 34 39 78 114 18 88 120 113 77 27 2 63 84 71 85 86 10 95 47 82 121 68 25 75 52 126...
output:
098d134608c94f7413faac591054ee35 OK 90 116 67 11 104 17 80 20 106 22 111 112 110 122 91 21 117 8 62 4 100 48 14 124 89 102 92 81 33 57 109 65 43 1 60 66 97 6 72 79 105 123 83 7 41 76 108 44 19 96 50 0 93 35 46 28 16 37 107 87 55 56 64 31 61 34 39 78 114 18 88 120 113 77 27 2 63 84 71 85 86 10 95 47 ...
result:
ok n = 128
Test #52:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
128 1792 1792 124 99 107 36 110 81 7 8 45 82 15 48 30 26 101 126 86 22 12 94 119 59 10 47 72 108 57 122 42 33 88 79 89 44 116 6 71 98 84 50 11 68 112 54 4 91 118 109 113 105 102 0 92 95 75 96 13 70 52 73 104 53 64 23 21 61 25 100 127 80 55 29 97 5 106 78 93 43 111 115 67 121 77 123 17 3 35 85 24 120...
output:
098d134608c94f7413faac591054ee35 OK 124 99 107 36 110 81 7 8 45 82 15 48 30 26 101 126 86 22 12 94 119 59 10 47 72 108 57 122 42 33 88 79 89 44 116 6 71 98 84 50 11 68 112 54 4 91 118 109 113 105 102 0 92 95 75 96 13 70 52 73 104 53 64 23 21 61 25 100 127 80 55 29 97 5 106 78 93 43 111 115 67 121 77...
result:
ok n = 128
Test #53:
score: 0
Accepted
time: 1ms
memory: 3928kb
input:
128 1792 1792 26 16 37 8 53 2 30 107 103 68 127 114 34 106 77 55 40 62 88 86 94 92 73 27 93 12 66 109 79 54 120 20 29 0 15 78 85 23 49 48 38 47 60 31 50 7 124 97 84 32 1 4 24 33 81 111 108 64 21 122 80 9 61 3 100 71 52 44 89 119 28 70 112 87 5 102 96 125 59 41 115 113 121 57 46 13 18 51 91 126 90 19...
output:
098d134608c94f7413faac591054ee35 OK 26 16 37 8 53 2 30 107 103 68 127 114 34 106 77 55 40 62 88 86 94 92 73 27 93 12 66 109 79 54 120 20 29 0 15 78 85 23 49 48 38 47 60 31 50 7 124 97 84 32 1 4 24 33 81 111 108 64 21 122 80 9 61 3 100 71 52 44 89 119 28 70 112 87 5 102 96 125 59 41 115 113 121 57 46...
result:
ok n = 128
Test #54:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
128 1792 1792 18 102 70 67 16 65 51 87 15 120 19 92 42 6 118 103 53 36 100 116 41 26 121 1 38 7 119 27 74 43 28 56 77 11 86 66 9 57 109 59 37 2 95 112 101 108 10 33 93 83 20 0 17 55 29 88 44 97 23 39 89 12 96 71 75 4 61 47 85 60 54 68 48 122 69 58 110 64 90 124 104 63 106 72 31 98 123 125 13 40 73 2...
output:
098d134608c94f7413faac591054ee35 OK 18 102 70 67 16 65 51 87 15 120 19 92 42 6 118 103 53 36 100 116 41 26 121 1 38 7 119 27 74 43 28 56 77 11 86 66 9 57 109 59 37 2 95 112 101 108 10 33 93 83 20 0 17 55 29 88 44 97 23 39 89 12 96 71 75 4 61 47 85 60 54 68 48 122 69 58 110 64 90 124 104 63 106 72 31...
result:
ok n = 128
Test #55:
score: 0
Accepted
time: 1ms
memory: 3964kb
input:
128 1792 1792 63 14 82 13 97 5 116 83 113 100 3 73 65 27 84 8 52 35 103 107 39 42 15 127 105 51 66 16 34 21 40 19 9 110 124 95 120 71 119 7 70 67 29 80 98 112 64 91 88 78 24 57 62 22 126 118 94 47 23 36 125 6 76 0 54 49 77 56 4 2 10 101 17 99 61 72 90 93 20 25 1 12 37 74 58 86 69 48 46 50 30 11 117 ...
output:
098d134608c94f7413faac591054ee35 OK 63 14 82 13 97 5 116 83 113 100 3 73 65 27 84 8 52 35 103 107 39 42 15 127 105 51 66 16 34 21 40 19 9 110 124 95 120 71 119 7 70 67 29 80 98 112 64 91 88 78 24 57 62 22 126 118 94 47 23 36 125 6 76 0 54 49 77 56 4 2 10 101 17 99 61 72 90 93 20 25 1 12 37 74 58 86 ...
result:
ok n = 128
Test #56:
score: 0
Accepted
time: 1ms
memory: 3988kb
input:
128 1792 1792 85 93 74 69 91 40 57 58 16 7 0 63 64 2 66 24 27 73 25 51 88 109 116 115 19 82 60 124 41 92 53 10 119 84 122 107 90 71 46 30 35 79 54 89 65 55 96 17 108 114 18 113 103 72 75 31 12 77 61 86 1 56 97 21 111 68 49 102 33 9 26 120 14 44 106 39 80 112 47 52 8 78 48 70 37 28 13 42 67 95 4 3 11...
output:
098d134608c94f7413faac591054ee35 OK 85 93 74 69 91 40 57 58 16 7 0 63 64 2 66 24 27 73 25 51 88 109 116 115 19 82 60 124 41 92 53 10 119 84 122 107 90 71 46 30 35 79 54 89 65 55 96 17 108 114 18 113 103 72 75 31 12 77 61 86 1 56 97 21 111 68 49 102 33 9 26 120 14 44 106 39 80 112 47 52 8 78 48 70 37...
result:
ok n = 128
Test #57:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
128 1792 1792 102 107 44 126 121 12 100 89 56 117 39 45 83 13 20 4 93 48 75 118 84 73 3 17 66 90 14 34 69 94 58 71 111 91 72 95 28 108 33 79 98 123 125 88 18 85 7 120 15 51 110 53 80 29 59 105 62 30 76 31 92 0 22 23 87 11 109 60 8 113 101 40 70 21 6 43 115 24 41 86 49 116 74 124 46 50 114 26 96 1 77...
output:
098d134608c94f7413faac591054ee35 OK 102 107 44 126 121 12 100 89 56 117 39 45 83 13 20 4 93 48 75 118 84 73 3 17 66 90 14 34 69 94 58 71 111 91 72 95 28 108 33 79 98 123 125 88 18 85 7 120 15 51 110 53 80 29 59 105 62 30 76 31 92 0 22 23 87 11 109 60 8 113 101 40 70 21 6 43 115 24 41 86 49 116 74 12...
result:
ok n = 128
Test #58:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
128 1792 1792 92 30 24 84 8 63 41 25 37 101 19 99 35 31 89 121 42 34 87 45 108 80 72 85 16 56 49 86 77 125 47 114 22 2 74 60 38 97 36 53 14 29 26 44 59 65 96 39 13 21 51 113 0 88 18 17 40 91 116 57 54 48 70 28 55 64 93 118 98 110 123 6 79 115 126 10 100 106 76 120 5 67 95 11 109 122 68 46 107 27 119...
output:
098d134608c94f7413faac591054ee35 OK 92 30 24 84 8 63 41 25 37 101 19 99 35 31 89 121 42 34 87 45 108 80 72 85 16 56 49 86 77 125 47 114 22 2 74 60 38 97 36 53 14 29 26 44 59 65 96 39 13 21 51 113 0 88 18 17 40 91 116 57 54 48 70 28 55 64 93 118 98 110 123 6 79 115 126 10 100 106 76 120 5 67 95 11 10...
result:
ok n = 128
Test #59:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
128 1792 1792 32 66 86 23 75 51 77 96 81 11 30 52 9 121 29 25 126 116 6 34 37 113 120 13 19 127 15 122 22 58 43 0 61 90 26 98 5 48 76 38 83 108 60 118 14 112 63 93 57 114 79 62 70 117 92 4 24 44 10 54 110 115 16 50 41 20 100 73 7 1 78 74 91 67 119 97 8 33 105 2 71 99 107 95 42 31 87 36 18 85 21 106 ...
output:
098d134608c94f7413faac591054ee35 OK 32 66 86 23 75 51 77 96 81 11 30 52 9 121 29 25 126 116 6 34 37 113 120 13 19 127 15 122 22 58 43 0 61 90 26 98 5 48 76 38 83 108 60 118 14 112 63 93 57 114 79 62 70 117 92 4 24 44 10 54 110 115 16 50 41 20 100 73 7 1 78 74 91 67 119 97 8 33 105 2 71 99 107 95 42 ...
result:
ok n = 128
Test #60:
score: 0
Accepted
time: 0ms
memory: 4216kb
input:
128 1792 1792 8 13 26 118 22 113 93 0 56 57 27 64 39 14 89 119 97 52 110 82 63 108 49 62 83 116 122 15 117 101 5 17 123 65 76 3 42 74 75 86 124 69 47 103 80 66 31 111 34 7 43 25 68 81 54 73 127 32 112 87 24 125 72 23 84 16 18 85 90 53 99 121 98 45 126 12 36 55 67 100 50 114 70 59 6 48 61 4 40 77 96 ...
output:
098d134608c94f7413faac591054ee35 OK 8 13 26 118 22 113 93 0 56 57 27 64 39 14 89 119 97 52 110 82 63 108 49 62 83 116 122 15 117 101 5 17 123 65 76 3 42 74 75 86 124 69 47 103 80 66 31 111 34 7 43 25 68 81 54 73 127 32 112 87 24 125 72 23 84 16 18 85 90 53 99 121 98 45 126 12 36 55 67 100 50 114 70 ...
result:
ok n = 128
Subtask #5:
score: 30
Accepted
Test #61:
score: 30
Accepted
time: 1ms
memory: 4304kb
input:
128 896 896 63 32 97 4 81 96 33 102 23 114 42 103 5 16 104 72 112 37 118 119 69 71 1 3 0 45 86 89 91 58 10 87 31 30 51 8 28 99 123 38 19 78 55 7 126 108 80 47 12 21 74 84 15 122 46 105 48 61 17 125 79 54 127 90 109 68 50 107 62 92 20 64 98 40 111 34 120 82 88 116 75 36 106 93 27 11 52 53 101 73 43 2...
output:
098d134608c94f7413faac591054ee35 OK 63 32 97 4 81 96 33 102 23 114 42 103 5 16 104 72 112 37 118 119 69 71 1 3 0 45 86 89 91 58 10 87 31 30 51 8 28 99 123 38 19 78 55 7 126 108 80 47 12 21 74 84 15 122 46 105 48 61 17 125 79 54 127 90 109 68 50 107 62 92 20 64 98 40 111 34 120 82 88 116 75 36 106 93...
result:
ok n = 128
Test #62:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
128 896 896 121 124 50 98 74 123 81 12 82 55 104 67 11 40 3 115 19 29 93 2 95 72 4 26 120 73 90 31 25 80 54 78 15 0 61 59 88 66 76 46 92 35 91 9 43 52 41 101 36 87 69 48 64 117 109 18 14 21 118 99 8 57 53 37 77 16 126 68 116 71 127 10 106 65 102 79 20 125 85 62 5 6 70 34 1 97 111 24 58 112 100 39 45...
output:
098d134608c94f7413faac591054ee35 OK 121 124 50 98 74 123 81 12 82 55 104 67 11 40 3 115 19 29 93 2 95 72 4 26 120 73 90 31 25 80 54 78 15 0 61 59 88 66 76 46 92 35 91 9 43 52 41 101 36 87 69 48 64 117 109 18 14 21 118 99 8 57 53 37 77 16 126 68 116 71 127 10 106 65 102 79 20 125 85 62 5 6 70 34 1 97...
result:
ok n = 128
Test #63:
score: 0
Accepted
time: 1ms
memory: 4284kb
input:
128 896 896 43 75 60 106 28 16 77 115 87 41 6 96 37 19 121 5 62 81 68 7 49 89 32 116 122 113 20 112 22 76 64 126 44 36 51 34 13 91 105 102 50 27 54 63 46 82 118 11 110 65 78 61 17 42 2 66 26 114 71 25 70 69 124 45 90 38 59 92 3 8 0 72 52 53 79 88 56 15 39 35 30 21 100 9 119 108 80 31 4 101 18 85 127...
output:
098d134608c94f7413faac591054ee35 OK 43 75 60 106 28 16 77 115 87 41 6 96 37 19 121 5 62 81 68 7 49 89 32 116 122 113 20 112 22 76 64 126 44 36 51 34 13 91 105 102 50 27 54 63 46 82 118 11 110 65 78 61 17 42 2 66 26 114 71 25 70 69 124 45 90 38 59 92 3 8 0 72 52 53 79 88 56 15 39 35 30 21 100 9 119 1...
result:
ok n = 128
Test #64:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
128 896 896 51 58 101 40 30 43 54 8 78 80 14 31 39 79 27 29 97 73 5 11 123 32 105 88 64 35 59 38 120 6 34 100 7 55 83 104 3 2 87 94 125 90 41 28 72 70 114 106 86 89 121 16 77 126 107 103 48 119 42 10 117 50 96 127 91 44 69 20 82 4 99 12 68 56 53 26 19 113 102 81 60 62 1 116 52 75 47 63 25 45 49 24 7...
output:
098d134608c94f7413faac591054ee35 OK 51 58 101 40 30 43 54 8 78 80 14 31 39 79 27 29 97 73 5 11 123 32 105 88 64 35 59 38 120 6 34 100 7 55 83 104 3 2 87 94 125 90 41 28 72 70 114 106 86 89 121 16 77 126 107 103 48 119 42 10 117 50 96 127 91 44 69 20 82 4 99 12 68 56 53 26 19 113 102 81 60 62 1 116 5...
result:
ok n = 128
Test #65:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
128 896 896 101 97 113 64 127 49 104 10 76 110 38 14 121 98 48 72 1 83 86 123 118 29 55 9 68 109 11 7 22 16 60 70 25 125 124 28 89 96 117 75 71 91 99 56 106 66 0 57 45 34 41 17 78 32 82 85 21 35 102 103 107 50 23 90 126 69 6 15 42 62 53 120 47 3 20 111 95 33 84 88 105 19 43 67 37 92 40 51 5 119 112 ...
output:
098d134608c94f7413faac591054ee35 OK 101 97 113 64 127 49 104 10 76 110 38 14 121 98 48 72 1 83 86 123 118 29 55 9 68 109 11 7 22 16 60 70 25 125 124 28 89 96 117 75 71 91 99 56 106 66 0 57 45 34 41 17 78 32 82 85 21 35 102 103 107 50 23 90 126 69 6 15 42 62 53 120 47 3 20 111 95 33 84 88 105 19 43 6...
result:
ok n = 128
Test #66:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
128 896 896 90 116 67 11 104 17 80 20 106 22 111 112 110 122 91 21 117 8 62 4 100 48 14 124 89 102 92 81 33 57 109 65 43 1 60 66 97 6 72 79 105 123 83 7 41 76 108 44 19 96 50 0 93 35 46 28 16 37 107 87 55 56 64 31 61 34 39 78 114 18 88 120 113 77 27 2 63 84 71 85 86 10 95 47 82 121 68 25 75 52 126 3...
output:
098d134608c94f7413faac591054ee35 OK 90 116 67 11 104 17 80 20 106 22 111 112 110 122 91 21 117 8 62 4 100 48 14 124 89 102 92 81 33 57 109 65 43 1 60 66 97 6 72 79 105 123 83 7 41 76 108 44 19 96 50 0 93 35 46 28 16 37 107 87 55 56 64 31 61 34 39 78 114 18 88 120 113 77 27 2 63 84 71 85 86 10 95 47 ...
result:
ok n = 128
Test #67:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
128 896 896 124 99 107 36 110 81 7 8 45 82 15 48 30 26 101 126 86 22 12 94 119 59 10 47 72 108 57 122 42 33 88 79 89 44 116 6 71 98 84 50 11 68 112 54 4 91 118 109 113 105 102 0 92 95 75 96 13 70 52 73 104 53 64 23 21 61 25 100 127 80 55 29 97 5 106 78 93 43 111 115 67 121 77 123 17 3 35 85 24 120 3...
output:
098d134608c94f7413faac591054ee35 OK 124 99 107 36 110 81 7 8 45 82 15 48 30 26 101 126 86 22 12 94 119 59 10 47 72 108 57 122 42 33 88 79 89 44 116 6 71 98 84 50 11 68 112 54 4 91 118 109 113 105 102 0 92 95 75 96 13 70 52 73 104 53 64 23 21 61 25 100 127 80 55 29 97 5 106 78 93 43 111 115 67 121 77...
result:
ok n = 128
Test #68:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
128 896 896 26 16 37 8 53 2 30 107 103 68 127 114 34 106 77 55 40 62 88 86 94 92 73 27 93 12 66 109 79 54 120 20 29 0 15 78 85 23 49 48 38 47 60 31 50 7 124 97 84 32 1 4 24 33 81 111 108 64 21 122 80 9 61 3 100 71 52 44 89 119 28 70 112 87 5 102 96 125 59 41 115 113 121 57 46 13 18 51 91 126 90 19 6...
output:
098d134608c94f7413faac591054ee35 OK 26 16 37 8 53 2 30 107 103 68 127 114 34 106 77 55 40 62 88 86 94 92 73 27 93 12 66 109 79 54 120 20 29 0 15 78 85 23 49 48 38 47 60 31 50 7 124 97 84 32 1 4 24 33 81 111 108 64 21 122 80 9 61 3 100 71 52 44 89 119 28 70 112 87 5 102 96 125 59 41 115 113 121 57 46...
result:
ok n = 128
Test #69:
score: 0
Accepted
time: 1ms
memory: 3976kb
input:
128 896 896 18 102 70 67 16 65 51 87 15 120 19 92 42 6 118 103 53 36 100 116 41 26 121 1 38 7 119 27 74 43 28 56 77 11 86 66 9 57 109 59 37 2 95 112 101 108 10 33 93 83 20 0 17 55 29 88 44 97 23 39 89 12 96 71 75 4 61 47 85 60 54 68 48 122 69 58 110 64 90 124 104 63 106 72 31 98 123 125 13 40 73 25 ...
output:
098d134608c94f7413faac591054ee35 OK 18 102 70 67 16 65 51 87 15 120 19 92 42 6 118 103 53 36 100 116 41 26 121 1 38 7 119 27 74 43 28 56 77 11 86 66 9 57 109 59 37 2 95 112 101 108 10 33 93 83 20 0 17 55 29 88 44 97 23 39 89 12 96 71 75 4 61 47 85 60 54 68 48 122 69 58 110 64 90 124 104 63 106 72 31...
result:
ok n = 128
Test #70:
score: 0
Accepted
time: 1ms
memory: 4212kb
input:
128 896 896 63 14 82 13 97 5 116 83 113 100 3 73 65 27 84 8 52 35 103 107 39 42 15 127 105 51 66 16 34 21 40 19 9 110 124 95 120 71 119 7 70 67 29 80 98 112 64 91 88 78 24 57 62 22 126 118 94 47 23 36 125 6 76 0 54 49 77 56 4 2 10 101 17 99 61 72 90 93 20 25 1 12 37 74 58 86 69 48 46 50 30 11 117 31...
output:
098d134608c94f7413faac591054ee35 OK 63 14 82 13 97 5 116 83 113 100 3 73 65 27 84 8 52 35 103 107 39 42 15 127 105 51 66 16 34 21 40 19 9 110 124 95 120 71 119 7 70 67 29 80 98 112 64 91 88 78 24 57 62 22 126 118 94 47 23 36 125 6 76 0 54 49 77 56 4 2 10 101 17 99 61 72 90 93 20 25 1 12 37 74 58 86 ...
result:
ok n = 128
Test #71:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
128 896 896 85 93 74 69 91 40 57 58 16 7 0 63 64 2 66 24 27 73 25 51 88 109 116 115 19 82 60 124 41 92 53 10 119 84 122 107 90 71 46 30 35 79 54 89 65 55 96 17 108 114 18 113 103 72 75 31 12 77 61 86 1 56 97 21 111 68 49 102 33 9 26 120 14 44 106 39 80 112 47 52 8 78 48 70 37 28 13 42 67 95 4 3 110 ...
output:
098d134608c94f7413faac591054ee35 OK 85 93 74 69 91 40 57 58 16 7 0 63 64 2 66 24 27 73 25 51 88 109 116 115 19 82 60 124 41 92 53 10 119 84 122 107 90 71 46 30 35 79 54 89 65 55 96 17 108 114 18 113 103 72 75 31 12 77 61 86 1 56 97 21 111 68 49 102 33 9 26 120 14 44 106 39 80 112 47 52 8 78 48 70 37...
result:
ok n = 128
Test #72:
score: 0
Accepted
time: 0ms
memory: 3992kb
input:
128 896 896 102 107 44 126 121 12 100 89 56 117 39 45 83 13 20 4 93 48 75 118 84 73 3 17 66 90 14 34 69 94 58 71 111 91 72 95 28 108 33 79 98 123 125 88 18 85 7 120 15 51 110 53 80 29 59 105 62 30 76 31 92 0 22 23 87 11 109 60 8 113 101 40 70 21 6 43 115 24 41 86 49 116 74 124 46 50 114 26 96 1 77 1...
output:
098d134608c94f7413faac591054ee35 OK 102 107 44 126 121 12 100 89 56 117 39 45 83 13 20 4 93 48 75 118 84 73 3 17 66 90 14 34 69 94 58 71 111 91 72 95 28 108 33 79 98 123 125 88 18 85 7 120 15 51 110 53 80 29 59 105 62 30 76 31 92 0 22 23 87 11 109 60 8 113 101 40 70 21 6 43 115 24 41 86 49 116 74 12...
result:
ok n = 128
Test #73:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
128 896 896 92 30 24 84 8 63 41 25 37 101 19 99 35 31 89 121 42 34 87 45 108 80 72 85 16 56 49 86 77 125 47 114 22 2 74 60 38 97 36 53 14 29 26 44 59 65 96 39 13 21 51 113 0 88 18 17 40 91 116 57 54 48 70 28 55 64 93 118 98 110 123 6 79 115 126 10 100 106 76 120 5 67 95 11 109 122 68 46 107 27 119 5...
output:
098d134608c94f7413faac591054ee35 OK 92 30 24 84 8 63 41 25 37 101 19 99 35 31 89 121 42 34 87 45 108 80 72 85 16 56 49 86 77 125 47 114 22 2 74 60 38 97 36 53 14 29 26 44 59 65 96 39 13 21 51 113 0 88 18 17 40 91 116 57 54 48 70 28 55 64 93 118 98 110 123 6 79 115 126 10 100 106 76 120 5 67 95 11 10...
result:
ok n = 128
Test #74:
score: 0
Accepted
time: 1ms
memory: 3932kb
input:
128 896 896 32 66 86 23 75 51 77 96 81 11 30 52 9 121 29 25 126 116 6 34 37 113 120 13 19 127 15 122 22 58 43 0 61 90 26 98 5 48 76 38 83 108 60 118 14 112 63 93 57 114 79 62 70 117 92 4 24 44 10 54 110 115 16 50 41 20 100 73 7 1 78 74 91 67 119 97 8 33 105 2 71 99 107 95 42 31 87 36 18 85 21 106 35...
output:
098d134608c94f7413faac591054ee35 OK 32 66 86 23 75 51 77 96 81 11 30 52 9 121 29 25 126 116 6 34 37 113 120 13 19 127 15 122 22 58 43 0 61 90 26 98 5 48 76 38 83 108 60 118 14 112 63 93 57 114 79 62 70 117 92 4 24 44 10 54 110 115 16 50 41 20 100 73 7 1 78 74 91 67 119 97 8 33 105 2 71 99 107 95 42 ...
result:
ok n = 128
Test #75:
score: 0
Accepted
time: 0ms
memory: 4216kb
input:
128 896 896 8 13 26 118 22 113 93 0 56 57 27 64 39 14 89 119 97 52 110 82 63 108 49 62 83 116 122 15 117 101 5 17 123 65 76 3 42 74 75 86 124 69 47 103 80 66 31 111 34 7 43 25 68 81 54 73 127 32 112 87 24 125 72 23 84 16 18 85 90 53 99 121 98 45 126 12 36 55 67 100 50 114 70 59 6 48 61 4 40 77 96 10...
output:
098d134608c94f7413faac591054ee35 OK 8 13 26 118 22 113 93 0 56 57 27 64 39 14 89 119 97 52 110 82 63 108 49 62 83 116 122 15 117 101 5 17 123 65 76 3 42 74 75 86 124 69 47 103 80 66 31 111 34 7 43 25 68 81 54 73 127 32 112 87 24 125 72 23 84 16 18 85 90 53 99 121 98 45 126 12 36 55 67 100 50 114 70 ...
result:
ok n = 128