QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#291461 | #2425. The Collection Game | Max_s_xaM | 100 ✓ | 3ms | 4048kb | C++20 | 1.2kb | 2023-12-26 18:01:51 | 2023-12-26 18:01:52 |
Judging History
answer
#include "swaps.h"
#include <iostream>
#include <algorithm>
#include <vector>
typedef long long ll;
typedef double lf;
using namespace std;
const int MAXN = 530;
int n, m, a[MAXN];
vector <int> ret, ans;
void cpr(int &x, int &y)
{
if (x <= m && y <= m) schedule(x, y);
else if (y <= m) swap(x, y);
}
void solve(int N, int V)
{
n = 1, m = N;
while (n < N) n <<= 1;
for (int i = 1; i <= n; i++) a[i] = i;
int w;
for (w = 1; w * 2 <= n; w <<= 1)
{
for (int j = w; j >= 1; j >>= 1)
{
for (int l = 1, r = j; r + j <= n; l += 2 * j, r = l + j - 1)
for (int i = l; i <= r; i++)
if (l / (2 * w) & 1) cpr(a[i + j], a[i]);
else cpr(a[i], a[i + j]);
ret = visit(); int top = 0;
for (int l = 1, r = j; r + j <= n; l += 2 * j, r = l + j - 1)
for (int i = l; i <= r; i++)
if (a[i] <= m && a[i + j] <= m && !ret[top++]) swap(a[i], a[i + j]);
// for (int i = 1; i <= n; i++) cout << a[i] << " "; cout << "\n";
}
}
for (int i = 1; i <= m; i++) ans.push_back(a[i]);
answer(ans);
}
詳細信息
Subtask #1:
score: 0
Accepted
Test #1:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
4 50 2 0 0 2 1 0 2 0 1
output:
946149565 1 2 946149565 4 3 547293220 946149565 2 4 946149565 1 3 547293220 946149565 2 3 946149565 4 1 547293220 345685428 3 2 4 1
result:
points 1.0 points 1.0 Correct
Subtask #2:
score: 5
Accepted
Test #2:
score: 5
Accepted
time: 0ms
memory: 3764kb
input:
10 5000 5 0 1 0 1 0 4 1 0 0 1 5 0 1 1 0 1 4 1 1 1 0 4 1 0 0 1 5 0 0 1 1 0 2 0 0 4 1 1 1 0 4 1 1 0 0 5 1 1 0 1 1
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 547293220 946149565 2 3 946149565 1 4 946149565 7 6 946149565 8 5 547293220 946149565 2 4 946149565 3 1 946149565 5 7 946149565 8 6 946149565 10 9 547293220 946149565 4 7 946149565 2 5 946149565 3 8 946149565 1 6 547293220 946149...
result:
points 1.0 points 1.0 Correct
Test #3:
score: 0
Accepted
time: 1ms
memory: 4024kb
input:
100 5000 50 0 0 0 0 1 0 0 1 1 1 0 1 1 1 0 1 0 1 0 1 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 0 0 0 0 1 0 1 0 1 1 0 1 0 1 1 50 1 0 0 1 1 1 1 1 1 0 0 0 1 0 0 0 1 0 0 1 1 0 1 1 1 0 0 1 1 0 0 0 1 0 0 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 50 0 1 1 1 1 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 1 0 0 1 0 1 0 0 0 1 1 0 0 1 0 0 ...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #4:
score: 0
Accepted
time: 1ms
memory: 3992kb
input:
250 5000 125 0 1 0 0 0 1 0 1 1 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1 0 1 0 0 0 0 0 0 1 0 0 0 0 1 1 0 1 1 1 1 1 1 0 0 1 0 0 1 0 0 1 1 1 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 0 1 0 0 1 0 1 0 0 0 1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 1 0 0 1 0 1 1 1 0 0 1 0 1 1 0 124 1 0 0 1 1 0 0 1 0 0 0 0 1 0 0 1 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #5:
score: 0
Accepted
time: 2ms
memory: 3780kb
input:
500 5000 250 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 1 0 0 1 1 1 1 0 1 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #6:
score: 0
Accepted
time: 2ms
memory: 3768kb
input:
500 5000 250 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #7:
score: 0
Accepted
time: 3ms
memory: 3760kb
input:
500 5000 250 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #8:
score: 0
Accepted
time: 3ms
memory: 4020kb
input:
500 5000 250 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #9:
score: 0
Accepted
time: 2ms
memory: 3752kb
input:
500 5000 250 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #3:
score: 10
Accepted
Test #10:
score: 10
Accepted
time: 2ms
memory: 3748kb
input:
500 1000 250 0 1 0 0 0 1 1 1 0 0 0 0 0 1 1 0 0 1 1 0 1 1 1 0 1 1 1 1 0 0 1 1 1 1 0 1 0 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 1 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 1 1 1 1 0 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #11:
score: 0
Accepted
time: 3ms
memory: 3744kb
input:
500 1000 250 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
500 1000 250 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #13:
score: 0
Accepted
time: 3ms
memory: 3768kb
input:
500 1000 250 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #14:
score: 0
Accepted
time: 2ms
memory: 3768kb
input:
500 1000 250 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #4:
score: 3
Accepted
Test #15:
score: 3
Accepted
time: 1ms
memory: 4048kb
input:
10 5000 5 1 1 1 1 1 4 1 1 1 1 5 1 1 1 1 1 4 1 1 1 1 4 1 1 1 1 5 1 1 1 1 1 2 1 1 4 1 1 1 1 4 1 1 1 1 5 1 1 1 1 1
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 547293220 946149565 1 3 946149565 2 4 946149565 7 5 946149565 8 6 547293220 946149565 1 2 946149565 3 4 946149565 6 5 946149565 8 7 946149565 9 10 547293220 946149565 1 5 946149565 2 6 946149565 3 7 946149565 4 8 547293220 946149...
result:
points 1.0 points 1.0 Correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 4024kb
input:
100 5000 50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 50 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #5:
score: 2
Accepted
Dependency #4:
100%
Accepted
Test #17:
score: 2
Accepted
time: 1ms
memory: 4020kb
input:
10 5000 5 1 0 1 0 0 4 0 1 1 0 5 1 0 0 1 1 4 1 0 0 1 4 1 0 0 1 5 0 0 0 0 1 2 0 1 4 0 1 1 1 4 0 1 0 0 5 0 1 0 1 0
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 547293220 946149565 1 4 946149565 2 3 946149565 8 5 946149565 7 6 547293220 946149565 4 2 946149565 1 3 946149565 7 5 946149565 6 8 946149565 10 9 547293220 946149565 4 7 946149565 2 5 946149565 3 8 946149565 1 6 547293220 946149...
result:
points 1.0 points 1.0 Correct
Test #18:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
100 5000 50 0 0 0 0 1 1 1 0 0 1 1 0 1 0 1 1 1 1 1 0 1 0 0 0 0 1 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 1 50 0 1 0 1 1 1 1 1 1 0 1 1 0 0 1 1 0 1 1 1 1 0 1 0 1 1 1 1 1 1 1 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 0 1 0 50 1 0 1 0 1 0 1 0 0 1 0 0 1 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 1 0 1 0 1 0 1 0 0 1 1 1 ...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #6:
score: 9
Accepted
Dependency #4:
100%
Accepted
Test #19:
score: 9
Accepted
time: 1ms
memory: 3764kb
input:
250 5000 125 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 124 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #20:
score: 0
Accepted
time: 3ms
memory: 3768kb
input:
500 5000 250 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #7:
score: 6
Accepted
Dependency #2:
100%
Accepted
Dependency #5:
100%
Accepted
Dependency #6:
100%
Accepted
Test #21:
score: 6
Accepted
time: 2ms
memory: 3768kb
input:
250 5000 125 0 0 0 1 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 0 1 0 1 1 0 1 1 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 1 1 1 0 0 1 0 1 1 0 1 0 1 1 1 0 1 1 0 0 0 0 1 1 1 0 0 1 1 1 1 1 1 1 1 0 1 0 0 1 1 1 0 0 0 0 0 1 1 0 1 0 0 1 1 1 1 0 1 1 1 0 0 0 0 1 1 0 1 1 0 1 0 1 124 0 1 1 0 1 0 1 0 1 0 0 0 1 0 0 1 0...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Test #22:
score: 0
Accepted
time: 3ms
memory: 3764kb
input:
500 5000 250 0 0 1 1 0 1 0 1 0 1 0 0 0 0 1 1 1 0 1 1 0 0 0 1 0 1 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1 0 1 0 0 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 1 1 1 0 0 0 1 1 1 0 1 1 1 0 0 0 0 1 1 0 0 0 1 1 0 1 0 1 1 0 0 1 1 0 0 0 0 0 0 0 1 1 0 0 0 1 0 1 0 1 1 0 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #8:
score: 9
Accepted
Dependency #4:
100%
Accepted
Dependency #6:
100%
Accepted
Test #23:
score: 9
Accepted
time: 2ms
memory: 4024kb
input:
500 500 250 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #9:
score: 6
Accepted
Dependency #3:
100%
Accepted
Dependency #7:
100%
Accepted
Dependency #8:
100%
Accepted
Test #24:
score: 6
Accepted
time: 3ms
memory: 3772kb
input:
500 500 250 0 0 0 1 0 1 0 0 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 1 0 0 1 1 1 1 1 0 0 0 1 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 1 0 1 0 0 1 1 1 0 0 1 1 0 1 1 1 1 0 1 0 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 1 1 0 0 0 1 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 0 1 0 0 0 ...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #10:
score: 21
Accepted
Dependency #8:
100%
Accepted
Test #25:
score: 21
Accepted
time: 3ms
memory: 4044kb
input:
500 100 250 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #11:
score: 14
Accepted
Dependency #9:
100%
Accepted
Dependency #10:
100%
Accepted
Test #26:
score: 14
Accepted
time: 3ms
memory: 4036kb
input:
500 100 250 0 1 1 0 1 1 1 0 1 1 0 1 0 1 1 0 0 0 1 1 0 1 1 1 0 1 0 1 1 0 0 1 1 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0 1 0 1 0 1 1 0 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 1 0 1 0 0 0 1 1 1 1 1 1 0 1 0 0 0 0 1 1 0 0 1 1 0 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 1 1 0 0 0 0 0 0 1 0 0 1 1 ...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #12:
score: 9
Accepted
Dependency #10:
100%
Accepted
Test #27:
score: 9
Accepted
time: 1ms
memory: 3776kb
input:
500 50 250 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct
Subtask #13:
score: 6
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
100%
Accepted
Dependency #5:
100%
Accepted
Dependency #6:
100%
Accepted
Dependency #7:
100%
Accepted
Dependency #8:
100%
Accepted
Dependency #9:
100%
Accepted
Dependency #10:
100%
Accepted
Dependency #11:
100%
Accepted
Dependency #12:
100%
Accepted
Test #28:
score: 6
Accepted
time: 3ms
memory: 3732kb
input:
500 50 250 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1 1 0 0 0 0 1 1 1 1 0 1 1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 0 1 0 0 0 1 1 1 1 0 1 1 1 0 1 0 1 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 1 0 1 0 1 0 0 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0 0 1 1 1 1 1 0 1 1 1 1 0 0 0 1 1 1 0 1 1 1 0 1...
output:
946149565 1 2 946149565 4 3 946149565 5 6 946149565 8 7 946149565 9 10 946149565 12 11 946149565 13 14 946149565 16 15 946149565 17 18 946149565 20 19 946149565 21 22 946149565 24 23 946149565 25 26 946149565 28 27 946149565 29 30 946149565 32 31 946149565 33 34 946149565 36 35 946149565 37 38 94614...
result:
points 1.0 points 1.0 Correct