QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#290550 | #2745. Mechanical Doll | MoRanSky | 100 ✓ | 116ms | 19208kb | C++23 | 2.7kb | 2023-12-25 05:47:26 | 2023-12-25 05:47:28 |
Judging History
answer
#include "doll.h"
// Skyqwq
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define mp make_pair
#define pb push_back
typedef long long LL;
typedef pair<int, int> PII;
template <typename T> void inline read(T &x) {
x = 0; int f = 1; char s = getchar();
while (s < '0' || s > '9') { if (s == '-') { f = -1; } s = getchar(); }
while (s >= '0' && s <= '9') x = x * 10 + (s ^ 48), s = getchar();
x *= f;
}
template <typename T> bool inline chkMin(T &x, T y) { return y < x ? x = y, 1 : 0; }
template <typename T> bool inline chkMax(T &x, T y) { return y > x ? x = y, 1 : 0; }
const int N = 2e5 + 5;
int a[N], X[N << 1], Y[N << 1], w[N << 1], C[N], ji[N << 1];
vector<int> g[N];
int idx, now;
#define ls X[p]
#define rs Y[p]
int nd[N];
set<PII> s;
void bd(int &p, int l, int r, int i, int x, bool fl) {
if (fl) {
p = 1;
s.insert(mp(l, r));
return;
}
if (l == r) {
return;
}
if (!p) p = ++idx;
int mid = (l + r) >> 1;
if (x >> i & 1) {
bd(ls, l, mid, i - 1, 0, 1);
bd(rs, mid + 1, r, i - 1, x ^ (1 << i), 0);
} else {
bd(ls, l, mid, i - 1, x, 0);
bd(rs, mid + 1, r, i - 1, 0, 0);
}
}
bool go(int &p, int l, int r, int x) {
if (s.count(mp(l, r))) return 0;
if (l == r) {
if (p) return 0;
p = -x;
return 1;
}
int mid = (l + r) >> 1;
bool ok = 0;
if (!w[p]) ok = go(ls, l, mid, x);
else ok = go(rs, mid + 1, r, x);
w[p] ^= 1;
return ok;
}
void create_circuit(int m, std::vector<int> A) {
int n = A.size();
if (n == 1) {
vector<int> c(m + 1, 0);
c[0] = A[0];
c[A[0]] = 0;
vector<int> x, y;
answer(c, x, y);
return;
}
for (int i = 0; i < n; i++) a[i + 1] = A[i];
C[0] = a[1];
int l = 1, o = 0;
while (l < n) l <<= 1, o++;
now = ++idx;
nd[0] = 1;
int dl = l - n;
int xy = 0;
for (int i = 0; i < o; i++)
if (dl >> i & 1) xy = i;
// for (int i = 1; i <= xy; i++) {
// nd[i] = ++idx;
// X[idx] = nd[i - 1];
// Y[idx] = nd[i - 1];
// }
bd(now, 1, l, o - 1, dl, 0);
for (int i = 1; i <= m; i++) C[i] = -1;
int pa = 0;
for (int i = 1; i <= n; i++) {
while (1) {
int o = go(now, 1, l, a[i + 1]);
pa++;
if (o) break;
}
}
bool ok = 1;
for (int i = 1; i <= idx; i++) if (w[i]) {
ok = 0;
}
assert(ok);
vector<int> x(idx, 0), y(idx, 0);
for (int i = 0; i < idx; i++)
x[i] = -X[i + 1], y[i] = -Y[i + 1];//, cerr << x[i] << " " << y[i] << endl;
vector<int> c(m + 1, 0);
for (int i = 0; i <= m; i++) c[i] = C[i];//, cerr << c[i] << " "; puts("");
answer(c, x, y);
}
详细
Subtask #1:
score: 2
Accepted
Test #1:
score: 2
Accepted
time: 2ms
memory: 8408kb
input:
9 9 2 9 8 1 3 7 6 4 5
output:
Accepted: 11 54
result:
points 1
Test #2:
score: 0
Accepted
time: 17ms
memory: 12592kb
input:
100000 65536 13224 49549 24094 37805 90252 12892 7340 44487 93869 65919 83328 38749 45169 86649 56693 3303 75024 87778 80950 3269 79176 61578 35845 51581 96551 67857 13907 97387 75768 45565 89490 5018 103 41086 67064 9397 48489 68440 92764 32166 96653 66672 56950 86902 56409 70305 63374 77757 17781 ...
output:
Accepted: 65535 1048576
result:
points 1
Test #3:
score: 0
Accepted
time: 28ms
memory: 12784kb
input:
65537 65537 6441 24592 10760 39557 65462 30956 18436 9519 362 26018 25701 48274 47132 23414 12942 24379 58211 44126 23389 32686 48760 13253 65374 33337 12554 35737 16084 39919 42895 33833 19274 2894 18348 360 23026 58809 17915 58960 25582 45951 19578 25984 17149 34944 20240 62018 17167 52414 47657 4...
output:
Accepted: 65552 1310718
result:
points 1
Test #4:
score: 0
Accepted
time: 42ms
memory: 14192kb
input:
100000 100000 83254 62169 5236 21438 78363 14751 44638 2177 98268 60571 99414 18022 36403 50495 98037 57665 15840 74546 77473 70363 89184 46970 79155 39699 98519 49754 30108 58902 71395 16757 66405 96614 85750 35994 80062 68050 62099 60537 37156 54644 20810 62140 95068 7580 56792 86118 40233 6526 37...
output:
Accepted: 100006 1818080
result:
points 1
Test #5:
score: 0
Accepted
time: 2ms
memory: 8380kb
input:
16 16 10 9 12 15 3 2 8 14 1 5 6 4 13 11 7 16
output:
Accepted: 15 64
result:
points 1
Test #6:
score: 0
Accepted
time: 0ms
memory: 9368kb
input:
100000 16 44135 56348 19047 45933 82429 97231 20613 10472 34398 72594 60486 14499 13048 53662 38600 74603
output:
Accepted: 15 64
result:
points 1
Test #7:
score: 0
Accepted
time: 0ms
memory: 8448kb
input:
1 1 1
output:
Accepted: 0 0
result:
points 1
Subtask #2:
score: 4
Accepted
Test #8:
score: 4
Accepted
time: 39ms
memory: 15236kb
input:
65537 131072 38169 29889 63383 43430 55643 44435 63973 61457 18223 38917 62266 26543 10814 970 44978 20275 62383 23625 55275 37609 18805 62029 32115 42887 25636 51086 64204 11787 41137 16164 3764 59071 41518 13112 48670 57859 63154 43506 4175 38360 56815 16082 35241 41583 11729 45167 16539 36608 524...
output:
Accepted: 131071 2228224
result:
points 1
Test #9:
score: 0
Accepted
time: 68ms
memory: 16200kb
input:
100000 131073 61734 73042 59366 33009 62560 73038 44339 86523 7658 34359 76827 68571 83863 26715 88078 65508 68589 49267 62747 51316 8508 22067 59629 33963 92558 84309 55385 62694 77667 76171 19976 83841 19035 4944 24964 37987 53770 8114 2322 56094 74735 17468 73405 5746 83339 10532 76504 26243 1501...
output:
Accepted: 131089 2752510
result:
points 1
Test #10:
score: 0
Accepted
time: 102ms
memory: 19208kb
input:
100000 200000 83043 36540 24774 66205 7842 83398 83479 9409 19465 35483 56457 73207 70141 74710 69213 48571 95388 86888 65020 38252 50229 82818 68370 62010 59643 24258 27210 36191 23847 51210 16274 87051 79987 79405 41276 38288 55421 5238 47411 65745 2137 86636 52341 5066 42078 63201 31945 14943 164...
output:
Accepted: 200006 3836160
result:
points 1
Test #11:
score: 0
Accepted
time: 2ms
memory: 8400kb
input:
8 16 5 7 3 4 3 8 6 2 1 1 2 5 8 6 4 7
output:
Accepted: 15 64
result:
points 1
Test #12:
score: 0
Accepted
time: 2ms
memory: 8644kb
input:
15 16 9 12 14 2 13 1 6 1 7 7 14 8 11 15 10 3
output:
Accepted: 15 64
result:
points 1
Test #13:
score: 0
Accepted
time: 3ms
memory: 8488kb
input:
1 2 1 1
output:
Accepted: 1 2
result:
points 1
Subtask #3:
score: 10
Accepted
Test #14:
score: 10
Accepted
time: 116ms
memory: 18980kb
input:
66666 199998 46730 34215 30702 41294 43268 29126 13518 38942 42908 58361 10352 13453 61990 51635 45179 17080 11893 59293 8765 48892 9847 29159 4183 35752 44930 54866 19016 8489 9471 61999 29220 3802 39755 15070 38640 20910 16621 20205 2930 36405 53436 33759 40537 24283 20254 60792 29716 4450 42478 2...
output:
Accepted: 200005 3836158
result:
points 1
Test #15:
score: 0
Accepted
time: 66ms
memory: 15336kb
input:
32769 131076 8829 30944 26536 24377 6124 4543 32353 7058 21103 11122 8198 19529 22301 21270 5215 18906 18846 6914 15353 13819 23827 7837 2206 24007 14973 31637 14305 14695 12132 25477 27646 4903 7744 21814 3025 21061 7859 19065 18647 3167 7995 214 20861 11297 10612 2743 15912 1665 3400 16962 21692 1...
output:
Accepted: 131090 2752512
result:
points 1
Test #16:
score: 0
Accepted
time: 101ms
memory: 18212kb
input:
50000 200000 25241 16870 16272 15837 32662 3912 16150 5512 1699 27980 13997 38374 4182 6506 22600 19818 24607 19180 47790 36167 5578 47683 2665 29615 14997 23315 11250 6094 11596 26683 32069 37141 39632 23911 21360 40327 30746 10367 15847 2870 2633 10146 44047 44376 20751 46745 32075 23491 36385 240...
output:
Accepted: 200006 3836160
result:
points 1
Test #17:
score: 0
Accepted
time: 104ms
memory: 18960kb
input:
80000 199999 67677 31754 12492 71459 57465 31660 26707 49315 17519 5333 27531 24811 45788 49713 59693 9524 50044 28153 9079 41619 45764 20105 50079 56215 16830 30752 51327 33056 36375 65817 27999 17844 21350 67753 21082 51366 26671 60038 15168 20310 9391 3814 20442 53969 44560 58065 12792 34443 1381...
output:
Accepted: 200006 3836160
result:
points 1
Test #18:
score: 0
Accepted
time: 0ms
memory: 8836kb
input:
5 16 2 5 2 3 3 1 1 4 4 5 3 4 2 4 5 1
output:
Accepted: 15 64
result:
points 1
Test #19:
score: 0
Accepted
time: 0ms
memory: 8400kb
input:
4 16 4 2 4 4 3 3 3 2 2 1 1 3 2 1 1 4
output:
Accepted: 15 64
result:
points 1
Test #20:
score: 0
Accepted
time: 2ms
memory: 8408kb
input:
6 16 2 6 3 6 1 6 4 5 1 3 6 3 1 2 3 2
output:
Accepted: 15 64
result:
points 1
Test #21:
score: 0
Accepted
time: 2ms
memory: 8704kb
input:
1 3 1 1 1
output:
Accepted: 3 8
result:
points 1
Test #22:
score: 0
Accepted
time: 2ms
memory: 8772kb
input:
1 4 1 1 1 1
output:
Accepted: 3 8
result:
points 1
Subtask #4:
score: 10
Accepted
Test #23:
score: 10
Accepted
time: 2ms
memory: 8652kb
input:
5 16 2 4 2 4 5 5 2 4 5 4 2 2 5 5 4 1
output:
Accepted: 15 64
result:
points 1
Test #24:
score: 0
Accepted
time: 2ms
memory: 8384kb
input:
3 16 2 3 3 2 2 1 2 1 2 2 1 1 3 3 3 1
output:
Accepted: 15 64
result:
points 1
Test #25:
score: 0
Accepted
time: 0ms
memory: 8804kb
input:
3 16 3 3 3 3 1 1 3 3 3 2 3 3 2 1 1 1
output:
Accepted: 15 64
result:
points 1
Test #26:
score: 0
Accepted
time: 0ms
memory: 9004kb
input:
2 16 1 2 2 1 2 1 2 2 1 2 2 1 2 1 1 2
output:
Accepted: 15 64
result:
points 1
Test #27:
score: 0
Accepted
time: 0ms
memory: 9164kb
input:
2 16 1 1 2 2 1 2 2 2 2 1 2 2 2 2 2 1
output:
Accepted: 15 64
result:
points 1
Test #28:
score: 0
Accepted
time: 0ms
memory: 8404kb
input:
1 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
output:
Accepted: 15 64
result:
points 1
Test #29:
score: 0
Accepted
time: 0ms
memory: 8468kb
input:
4 16 2 3 1 2 2 4 1 1 3 3 1 3 3 4 1 4
output:
Accepted: 15 64
result:
points 1
Test #30:
score: 0
Accepted
time: 0ms
memory: 8472kb
input:
4 16 4 2 3 2 2 2 2 1 3 1 2 3 4 2 1 3
output:
Accepted: 15 64
result:
points 1
Subtask #5:
score: 18
Accepted
Test #31:
score: 18
Accepted
time: 0ms
memory: 8844kb
input:
1 33 1 1 1 1 1 1 1 1 1 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:
Accepted: 37 286
result:
points 1
Test #32:
score: 18
Accepted
time: 44ms
memory: 14176kb
input:
1 131072 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
Accepted: 131071 2228224
result:
points 1
Test #33:
score: 18
Accepted
time: 65ms
memory: 14732kb
input:
1 131073 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
Accepted: 131089 2752510
result:
points 1
Test #34:
score: 18
Accepted
time: 100ms
memory: 17292kb
input:
1 200000 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 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:
Accepted: 200006 3836160
result:
points 1
Subtask #6:
score: 56
Accepted
Test #35:
score: 56
Accepted
time: 95ms
memory: 18420kb
input:
40000 200000 18605 24497 29838 20963 4861 7592 1633 39477 36565 8297 18190 30474 13552 13537 21338 11904 20265 31867 16132 3720 10773 14695 7860 2766 29 34536 36990 22269 35364 15921 24814 6064 39832 24011 17689 20704 9159 7612 1993 36334 29110 2976 29779 10914 25954 17922 39388 28558 30311 7769 195...
output:
Accepted: 200006 3836160
result:
points 1
Test #36:
score: 56
Accepted
time: 109ms
memory: 17716kb
input:
22222 199998 21860 20050 2547 7619 18845 10292 5840 12001 10794 21463 8160 5225 21572 20104 506 7873 2707 19469 10521 11887 1259 2270 7670 4518 14806 17149 21917 5374 5087 6035 8782 14146 11788 14684 535 9352 1093 7008 12761 6614 6464 777 16429 3786 4907 19935 823 4098 8350 12958 15597 4748 22092 21...
output:
Accepted: 200005 3836158
result:
points 1
Test #37:
score: 56
Accepted
time: 105ms
memory: 17796kb
input:
28000 200000 8142 11747 20553 12117 4566 23755 26617 15601 24937 10478 5055 3284 25579 5406 13404 1545 27260 23373 15088 22276 15106 22648 12645 14790 15636 15421 6590 18588 27222 19557 27505 8836 10607 12382 25058 4875 14228 11018 27561 11574 725 9261 11747 15934 11144 5758 22227 25483 5996 1693 21...
output:
Accepted: 200006 3836160
result:
points 1
Test #38:
score: 56
Accepted
time: 110ms
memory: 17816kb
input:
11764 199988 735 2208 2650 9828 872 6401 8502 3551 6154 4471 9416 1175 1793 3222 6278 11516 4272 3916 6817 6693 8853 2421 2233 7776 2403 7380 7643 10048 10366 6695 4551 7453 9515 6940 2487 9110 304 10994 1050 5908 5374 6036 6854 10659 1687 5292 29 11384 9711 11143 9332 5594 9904 8753 1346 205 7144 9...
output:
Accepted: 199996 3836128
result:
points 1
Test #39:
score: 56
Accepted
time: 57ms
memory: 14176kb
input:
2 131074 1 2 2 2 1 1 2 1 2 1 1 1 2 2 2 2 2 1 2 1 1 1 1 2 2 2 2 1 2 1 2 2 1 2 1 2 2 2 1 2 1 2 2 1 1 1 1 1 2 2 2 2 1 2 1 2 2 1 2 1 2 1 2 2 2 1 1 1 2 1 1 1 1 2 1 1 2 1 2 2 1 2 2 1 1 1 2 1 2 1 1 2 1 2 1 2 1 1 2 1 2 1 2 1 2 1 2 2 2 2 2 1 2 1 1 2 2 1 2 2 2 1 2 1 2 2 2 1 1 1 2 2 1 1 1 2 1 2 1 1 1 2 1 2 1 1...
output:
Accepted: 131089 2752510
result:
points 1
Test #40:
score: 56
Accepted
time: 106ms
memory: 17584kb
input:
7660 199996 4750 781 5408 6682 6682 6682 5021 6682 4750 1894 6682 5886 2548 6682 6682 6682 6682 4750 937 6682 4750 4750 6682 4750 4750 4750 6682 6682 6682 4750 4750 830 4750 2974 6682 4750 6682 4750 5542 4999 845 6682 73 4750 4750 4750 2130 7095 6682 6682 6682 6682 6682 6682 6682 6682 4415 128 6682 ...
output:
Accepted: 200003 3836152
result:
points 1
Test #41:
score: 56
Accepted
time: 98ms
memory: 17272kb
input:
714 199714 111 26 153 15 537 229 104 270 236 65 106 163 132 349 608 503 19 707 83 38 632 709 161 515 279 549 372 27 66 497 332 41 686 458 185 197 440 247 592 209 49 528 505 599 687 662 489 280 279 240 355 497 661 421 327 390 250 409 505 196 639 675 78 451 144 107 581 654 559 594 583 596 511 392 653 ...
output:
Accepted: 199725 3834014
result:
points 1
Test #42:
score: 56
Accepted
time: 68ms
memory: 14456kb
input:
577 131073 351 58 451 514 3 184 317 147 564 305 560 51 485 278 53 335 118 323 167 455 179 366 153 78 75 441 513 525 505 565 28 224 35 73 209 67 2 35 509 47 321 481 308 522 440 256 440 547 95 454 568 352 2 60 83 107 373 72 50 410 485 323 543 137 340 305 383 198 61 402 116 393 401 72 394 280 407 375 3...
output:
Accepted: 131089 2752510
result:
points 1
Test #43:
score: 56
Accepted
time: 39ms
memory: 15100kb
input:
14564 131072 12958 7924 1625 8204 13388 1976 7157 11194 10094 13825 3246 2955 6469 3205 8719 14314 915 6321 5630 8844 6280 9051 11897 5740 1266 5260 2784 10172 5982 8161 1811 9364 11303 14428 4218 11210 7470 9418 13824 12967 2662 6629 2650 11363 3581 8704 602 11000 13302 2136 1846 13924 7260 11584 1...
output:
Accepted: 131071 2228224
result:
points 1
Test #44:
score: 56
Accepted
time: 65ms
memory: 14972kb
input:
19009 131073 14553 8542 4971 11622 12641 16876 3021 12800 4999 13492 12576 14084 12573 4986 17285 14395 17697 14581 9184 2173 10747 4090 804 13125 15431 9416 1780 5276 866 8750 12239 15708 10879 6928 4154 8997 3462 4721 7961 7054 5339 6385 16089 1239 7149 471 562 18194 899 15645 16050 17375 9168 807...
output:
Accepted: 131089 2752510
result:
points 1
Test #45:
score: 56
Accepted
time: 69ms
memory: 14300kb
input:
26213 131073 1176 5918 5988 22106 22959 15920 953 25988 10379 9824 16103 7512 12845 21454 17933 19193 18204 6869 10663 24943 22266 11056 17537 10885 17970 10042 20195 14580 9460 18651 10851 2898 13262 21139 13225 18063 314 24247 8463 15938 16055 25398 4842 5401 21162 5081 23750 16771 1613 21301 1463...
output:
Accepted: 131089 2752510
result:
points 1
Test #46:
score: 56
Accepted
time: 0ms
memory: 8644kb
input:
83 4097 36 82 71 38 74 39 36 60 15 42 1 20 7 56 43 15 17 40 8 66 71 35 58 3 52 82 33 7 64 64 61 13 12 48 80 3 75 76 18 75 76 69 69 2 77 82 70 76 49 25 26 34 33 11 17 18 16 34 51 61 80 25 80 28 83 32 56 24 2 6 50 76 16 15 34 64 72 9 81 9 10 18 46 43 72 4 59 27 35 27 63 53 14 46 55 49 42 80 79 73 18 3...
output:
Accepted: 4108 65534
result:
points 1
Test #47:
score: 56
Accepted
time: 52ms
memory: 14644kb
input:
1002 131071 179 913 379 44 607 389 202 283 161 290 603 18 392 195 345 705 495 398 57 774 805 598 821 865 964 410 792 159 55 885 271 990 277 40 379 937 583 454 7 92 678 520 968 572 480 975 542 592 754 706 744 908 195 375 574 612 191 164 404 831 603 643 385 636 604 851 125 830 706 965 718 794 844 261 ...
output:
Accepted: 131071 2228224
result:
points 1
Test #48:
score: 56
Accepted
time: 52ms
memory: 14656kb
input:
253 131072 121 31 34 106 104 196 135 240 169 237 52 107 134 118 68 231 177 141 60 122 181 148 105 2 63 148 77 113 182 76 118 150 89 212 43 153 121 107 158 162 70 43 14 224 215 17 21 110 54 204 3 224 247 103 31 41 158 198 246 109 234 195 219 190 129 97 46 116 71 24 118 218 133 200 9 98 36 104 195 210...
output:
Accepted: 131071 2228224
result:
points 1
Test #49:
score: 56
Accepted
time: 62ms
memory: 14760kb
input:
426 131073 381 249 157 407 398 45 239 62 157 165 228 67 160 186 119 307 55 179 224 235 168 113 74 299 345 342 386 380 157 253 369 339 228 227 198 309 229 107 358 85 68 300 362 204 160 342 337 418 80 266 194 314 170 345 177 146 324 59 116 16 149 3 163 17 164 114 57 267 30 190 383 10 400 50 261 15 276...
output:
Accepted: 131089 2752510
result:
points 1
Test #50:
score: 56
Accepted
time: 103ms
memory: 17320kb
input:
3333 199999 2047 2210 2781 1834 3243 3045 1802 2101 780 3238 2687 3278 2902 2051 2405 197 946 2374 659 753 1360 3063 703 1402 264 2301 1002 3140 2288 1419 2953 2337 1001 1245 221 3273 2745 1910 1421 1945 2347 2117 2372 2727 680 356 2912 2118 1155 1682 2882 1576 3256 2417 991 2030 864 1821 259 1597 2...
output:
Accepted: 200006 3836160
result:
points 1
Test #51:
score: 56
Accepted
time: 102ms
memory: 17828kb
input:
333 200000 190 214 82 109 245 153 102 242 84 265 310 156 205 200 254 266 258 177 205 35 194 281 110 265 104 162 223 3 229 246 295 103 247 163 289 226 64 85 50 23 307 222 264 275 303 210 8 249 92 302 96 76 268 285 192 99 135 76 255 327 63 269 329 282 310 238 41 105 287 248 88 322 281 123 128 205 39 8...
output:
Accepted: 200006 3836160
result:
points 1
Test #52:
score: 56
Accepted
time: 98ms
memory: 17396kb
input:
999 200000 872 225 429 740 71 90 332 26 706 264 556 81 539 187 139 495 526 381 5 971 808 440 862 767 567 738 726 307 858 816 579 442 345 36 257 694 650 418 656 250 678 59 315 132 253 127 203 802 660 841 671 635 461 406 993 805 93 673 930 719 220 265 369 714 375 953 533 351 954 993 746 117 124 395 31...
output:
Accepted: 200006 3836160
result:
points 1
Extra Test:
score: 0
Extra Test Passed