QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#222042 | #6547. Banshee | ucup-team004# | AC ✓ | 135ms | 5596kb | C++20 | 1.6kb | 2023-10-21 15:33:03 | 2023-10-21 15:33:03 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
constexpr double eps = 1E-5;
constexpr int range = 6;
constexpr int damage = 12 * 2;
constexpr double speed = 5.25;
constexpr double cooldown = 0.89;
void solve() {
int n, m;
std::cin >> n >> m;
std::vector<i64> p(n);
std::vector<int> a(n);
for (int i = 0; i < n; i++) {
i64 l, r;
int h, s;
std::cin >> l >> r >> h >> s;
l = std::max(0LL, l - range);
h = (h + s + damage - 1) / damage;
p[i] = l;
a[i] = h;
}
auto check = [&](double t) {
i64 attack = 0;
i64 need = 0;
for (int i = n - 1; i >= 0; i--) {
i64 times = std::floor((t - p[i] / speed) / cooldown);
if (times < 1) {
return false;
}
i64 v = std::min(attack, i64(a[i]));
attack -= v;
i64 more = (a[i] - v + times - 1) / times;
need += more;
if (need > m) {
return false;
}
attack += more * times - (a[i] - v);
}
return true;
};
double lo = 0;
double hi = 1E12;
while (hi - lo > std::max(1.0, lo) * eps) {
double x = (lo + hi) / 2;
if (check(x)) {
hi = x;
} else {
lo = x;
}
}
std::cout << lo << "\n";
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int t;
std::cin >> t;
while (t--) {
solve();
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3788kb
input:
2 2 1 1 2 1 100 100 500 736 0 3 2 0 1 12 0 1 2 6 6 2 3 3 10
output:
49.9445 1.77999
result:
ok 2 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
1 1 1 999999999999 1000000000000 1000000 1000000
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190476264642.11713', error '0.00001'
Test #3:
score: 0
Accepted
time: 72ms
memory: 5440kb
input:
1 200000 1 0 1 969249 972086 1 2 984744 984320 2 3 92755 47817 3 4 949336 988466 4 5 900430 587028 5 6 971159 502802 6 7 41633 978208 7 8 461354 662596 8 9 363071 263510 9 10 38887 360926 10 11 332384 508699 11 12 106353 110896 12 13 164201 615535 13 14 934900 317571 14 15 566503 490603 15 16 84381 ...
output:
7.43598e+09
result:
ok found '7435980000.00000', expected '7435986579.12476', error '0.00000'
Test #4:
score: 0
Accepted
time: 76ms
memory: 5424kb
input:
1 200000 333978112 0 1 992356 930126 1 2 176090 530440 2 3 737831 296956 3 4 506537 237481 4 5 707964 79385 5 6 924758 542461 6 7 105732 39650 7 8 873923 3276 8 9 32864 264522 9 10 395587 86623 10 11 350514 927988 11 12 525625 954467 12 13 244408 909598 13 14 560147 647280 14 15 242630 237857 15 16 ...
output:
38094.6
result:
ok found '38094.60000', expected '38094.79476', error '0.00001'
Test #5:
score: 0
Accepted
time: 84ms
memory: 5488kb
input:
1 200000 1000000000 0 1 945997 933305 1 2 5390 151804 2 3 128320 798645 3 4 701383 107391 4 5 937129 989695 5 6 200579 678099 6 7 26621 111037 7 8 787156 534916 8 9 690049 664552 9 10 986545 948890 10 11 282743 37920 11 12 92545 205330 12 13 746804 959767 13 14 390635 119950 14 15 553450 693187 15 1...
output:
38094.6
result:
ok found '38094.60000', expected '38094.79476', error '0.00001'
Test #6:
score: 0
Accepted
time: 126ms
memory: 4004kb
input:
100000 2 4 28797259691 276830799765 72278 33755 754885936393 923475252381 706795 936638 2 3 59508928733 771976493961 16966 42499 806442361566 991034882904 129056 718490 2 2 172750253246 241424267848 229419 649440 245407392377 589992423297 875885 889270 2 2 206097530212 864358471341 25515 147383 9818...
output:
1.43787e+11 1.53607e+11 4.67441e+10 1.87014e+11 8.86393e+10 1.33221e+11 1.11402e+11 9.83829e+10 1.59317e+11 8.09197e+10 1.5344e+11 1.47072e+11 1.07607e+11 5.39079e+10 1.46186e+11 7.71108e+10 1.40612e+11 1.76219e+11 1.36525e+11 1.44171e+11 1.42634e+11 1.52078e+11 1.57409e+11 1.65512e+11 8.51402e+10 1...
result:
ok 100000 numbers
Test #7:
score: 0
Accepted
time: 115ms
memory: 3904kb
input:
100000 2 4 26 41 4 12 49 93 67 31 2 2 16 30 5 6 91 100 15 54 2 2 6 33 36 29 42 81 51 40 2 2 0 10 43 41 12 27 1 1 2 4 43 53 9 4 85 90 30 7 2 4 34 49 4 18 61 80 6 45 2 2 43 69 3 20 79 96 35 6 2 3 8 10 27 3 42 77 54 16 2 4 8 9 13 8 37 62 41 11 2 4 23 27 37 22 38 50 45 2 2 4 27 46 20 6 53 58 27 48 2 3 1...
output:
9.97047 17.9704 10.4171 2.92286 15.9376 11.3661 15.6847 8.63709 6.79473 6.98519 10.7324 5.65187 5.84233 3.74714 16.0657 6.2233 9.65189 7.8752 12.509 3.81284 10.6042 5.08046 4.63712 6.92285 8.19378 11.0509 8.82761 16.45 12.0657 11.747 16.8899 18.5418 7.30377 18.7323 5.90805 8.63709 15.3038 13.9704 19...
result:
ok 100000 numbers
Test #8:
score: 0
Accepted
time: 135ms
memory: 3844kb
input:
100000 2 3 63 66 1 0 72 97 331 315 2 2 0 10 482 84 22 90 112 91 2 3 32 50 261 2 67 83 719 181 2 2 12 44 23 10 75 79 413 474 2 2 22 35 421 1 63 97 422 562 2 3 14 24 22 5 37 84 551 305 2 3 9 25 36 1 55 70 374 321 2 2 3 44 373 97 51 85 503 241 2 3 26 50 123 119 79 95 391 332 2 4 26 44 260 632 44 100 38...
output:
21.4714 16.3975 26.749 30.9428 37.5571 17.4747 19.1233 31.7113 26.3647 24.148 16.5123 30.2598 16.7818 18.2366 17.028 21.7899 36.6014 24.6569 17.4647 20.9033 20.647 26.8836 19.6256 20.2071 17.5371 35.7248 12.8932 23.3928 20.0233 13.6552 33.9413 10.68 19.698 21.7275 25.2975 24.9065 20.2004 25.4714 17....
result:
ok 100000 numbers
Test #9:
score: 0
Accepted
time: 120ms
memory: 3840kb
input:
100000 2 13 69 72 206 156 75 82 119 80 2 30 3 34 307 101 43 62 426 411 2 15 27 30 253 347 50 76 60 388 2 12 16 20 221 51 29 79 173 582 2 17 25 51 3 272 55 58 456 470 2 27 0 43 298 132 67 69 215 529 2 23 30 59 51 563 79 87 363 521 2 29 2 26 36 18 54 78 105 154 2 22 10 19 169 83 57 92 99 412 2 30 1 46...
output:
14.9228 8.82761 10.1609 7.94093 12.0033 13.3989 15.6847 10.0328 11.4942 10.0328 9.20852 17.2086 14.5418 2.66999 10.1609 5.20856 10.1609 18.6733 11.1133 12.2038 11.3661 11.9376 17.2742 6.79806 16.3842 15.1756 9.39904 11.8752 12.6995 17.2709 15.5566 8.959 10.8604 16.3185 10.4138 17.2086 14.7323 4.3185...
result:
ok 100000 numbers
Test #10:
score: 0
Accepted
time: 104ms
memory: 3860kb
input:
66667 3 4 84478696761 215372440520 125248 152596 250810965454 720537889569 668554 998232 828150985733 917337302216 538616 941606 3 3 236183738534 283314823352 801868 737151 341453082312 520548993644 159535 529378 740187497953 870532432850 715530 437783 3 3 175192417072 176862441971 927154 970167 264...
output:
1.57743e+11 1.40987e+11 1.06492e+11 1.2094e+11 1.6316e+11 1.88308e+11 1.49201e+11 1.5355e+11 1.06423e+11 1.69312e+11 1.44257e+11 1.47384e+11 1.36021e+11 1.29999e+11 1.80234e+11 1.31117e+11 1.23724e+11 1.51829e+11 1.63576e+11 1.71468e+11 1.31586e+11 1.2402e+11 1.7724e+11 1.27577e+11 1.54147e+11 8.558...
result:
ok 66667 numbers
Test #11:
score: 0
Accepted
time: 104ms
memory: 3840kb
input:
66667 3 4 11 26 62 9 26 33 5 43 77 88 5 18 3 4 1 10 1 3 18 32 16 15 35 46 5 5 3 4 8 45 23 61 50 52 4 0 60 87 6 3 3 2 5 7 1 3 29 49 1 58 54 93 2 20 3 3 7 46 9 23 67 68 1 0 77 79 1 6 3 2 50 57 27 48 61 74 1 2 75 95 27 29 3 4 5 14 19 30 43 45 14 37 50 54 71 21 3 3 42 66 2 43 67 79 24 32 89 99 24 0 3 3 ...
output:
14.4138 6.41376 11.1756 10.0328 14.4138 15.8128 10.1609 16.6994 12.3842 15.7471 17.0804 15.3662 15.8819 16.3185 18.1609 15.6256 14.7947 12.8899 16.8275 16.3185 15.0508 13.0838 16.128 8.76521 16.45 12.0033 14.3514 15.2414 16.1937 15.3038 12.8899 14.2266 16.0657 17.4614 14.4138 17.0804 12.8899 18.6042...
result:
ok 66667 numbers
Test #12:
score: 0
Accepted
time: 120ms
memory: 3844kb
input:
66667 3 3 33 41 362 78 68 78 17 787 86 88 58 207 3 4 7 11 183 116 15 57 246 198 68 69 84 22 3 3 4 10 471 382 35 43 317 273 46 48 58 838 3 3 1 28 1 370 38 39 482 104 40 93 87 14 3 4 5 26 152 33 49 72 322 55 82 88 133 514 3 2 15 30 467 100 33 59 114 755 64 87 177 805 3 4 6 45 143 312 56 75 4 317 83 98...
output:
32.2795 15.3695 36.0989 19.8261 24.2661 53.7672 26.2366 34.0594 43.3371 38.0003 27.3961 42.319 25.5995 36.0232 40.286 30.447 23.2023 36.1546 26.4371 19.1299 41.5046 29.6752 24.5222 24.2137 21.1628 16.8309 25.6062 31.708 19.0609 28.9857 47.2156 35.8984 25.8098 24.9132 23.4552 29.6161 26.056 49.0057 3...
result:
ok 66667 numbers
Test #13:
score: 0
Accepted
time: 105ms
memory: 3788kb
input:
66667 3 14 3 7 499 39 31 38 63 24 44 66 89 328 3 27 8 15 286 589 38 48 148 569 74 86 303 494 3 11 34 37 164 41 43 50 687 180 66 75 187 111 3 17 17 32 230 27 64 72 553 404 87 90 347 451 3 17 32 35 129 234 49 64 64 207 97 100 371 414 3 27 2 6 273 118 10 19 270 109 73 93 281 216 3 10 1 16 32 153 33 44 ...
output:
9.01806 14.7323 14.0985 18.9885 20.0033 13.6519 14.0428 14.4138 15.9376 15.8128 17.5895 15.5009 14.3514 13.4613 14.7981 10.7324 15.4943 14.4138 18.5418 13.7176 9.5271 14.4794 13.5895 8.00665 16.1348 17.2086 12.9556 7.36616 14.4138 14.4138 18.4137 15.8752 14.0328 16.128 8.12805 14.2233 17.78 13.3367 ...
result:
ok 66667 numbers
Test #14:
score: 0
Accepted
time: 92ms
memory: 3792kb
input:
50000 4 4 81268202808 746733454011 344996 95484 773994511323 814460911319 237111 309583 860438349719 870176965078 864306 831386 892125406905 940445502602 963093 804924 4 4 60336094423 120458398708 844351 869499 127382397656 141925074629 36260 235297 845551701072 854656619814 834417 834688 8941488590...
output:
1.69929e+11 1.70314e+11 1.39941e+11 8.84819e+10 1.69876e+11 1.22899e+11 1.41156e+11 1.44854e+11 6.92706e+10 1.69305e+11 1.3247e+11 1.70547e+11 8.43687e+10 1.82528e+11 1.3884e+11 1.72721e+11 1.77456e+11 1.49178e+11 1.18959e+11 1.65319e+11 1.39665e+11 1.36338e+11 1.12679e+11 6.86789e+10 1.07783e+11 1....
result:
ok 50000 numbers
Test #15:
score: 0
Accepted
time: 101ms
memory: 3852kb
input:
50000 4 3 22 28 23 45 46 60 50 29 64 72 82 12 77 91 20 52 4 2 13 36 53 21 40 51 68 24 64 78 18 2 83 99 48 10 4 3 1 26 2 87 53 58 30 54 67 83 2 10 92 97 1 0 4 2 2 19 1 0 19 33 62 24 52 55 9 79 68 99 80 6 4 2 20 22 27 19 28 30 31 61 50 66 7 15 75 86 33 26 4 2 6 42 36 62 51 55 33 40 64 66 20 24 75 99 1...
output:
16.1937 18.2266 17.2709 16.2594 15.8128 16.5814 19.5632 13.2709 18.4137 13.3989 17.1462 20.1937 18.9228 14.3514 16.1937 13.2709 17.2709 16.3185 13.78 13.3367 14.0328 15.1756 16.8899 17.8423 14.9919 14.9852 15.8752 16.8966 18.2233 18.5418 11.4319 13.5271 17.4614 19.179 16.8899 18.1609 13.6552 17.0804...
result:
ok 50000 numbers
Test #16:
score: 0
Accepted
time: 107ms
memory: 3840kb
input:
50000 4 2 0 19 550 114 32 40 388 196 66 74 116 129 80 95 136 152 4 2 15 17 24 159 35 45 616 126 48 69 186 514 80 86 11 82 4 3 25 36 71 69 38 49 857 69 56 68 523 284 88 89 185 23 4 3 6 51 140 757 58 64 774 187 70 80 48 133 88 93 29 61 4 2 22 37 134 248 38 48 120 128 52 53 210 782 70 77 203 574 4 3 13...
output:
43.4652 43.5998 36.9789 36.6047 55.9317 29.6785 32.1547 39.5866 54.273 26.8869 64.4409 14.9886 30.4994 27.1989 72.7725 49.4422 35.2647 42.838 26.3156 44.9956 27.6981 42.585 29.1069 41.938 32.4174 22.808 50.1386 40.5522 24.3452 23.4384 37.3699 40.4108 52.1188 40.1057 43.9742 47.0251 26.4437 35.0875 3...
result:
ok 50000 numbers
Test #17:
score: 0
Accepted
time: 104ms
memory: 4064kb
input:
50000 4 10 17 21 148 230 33 36 84 243 51 58 749 118 76 99 97 419 4 21 0 8 350 179 9 12 390 83 39 41 787 128 42 59 8 78 4 22 10 27 136 133 43 47 115 383 53 62 179 507 64 81 119 64 4 26 1 2 189 222 70 77 62 84 79 83 194 53 97 100 215 18 4 30 1 16 11 198 17 41 132 144 47 61 47 785 81 88 303 504 4 27 1 ...
output:
18.6733 8.95567 12.5123 18.2233 16.0657 13.0804 17.3366 13.35 12.1281 14.2233 17.6519 16.3185 10.0328 22.2922 17.2709 15.8752 17.4647 11.8128 17.5271 12.6371 16.4466 18.23 19.3038 16.8275 15.3662 19.0509 17.6552 15.8128 15.7504 15.4976 19.179 18.0985 14.9852 13.5895 9.85234 16.0657 17.468 18.5452 13...
result:
ok 50000 numbers
Test #18:
score: 0
Accepted
time: 84ms
memory: 3852kb
input:
40000 5 2 127768238053 206960001122 432129 213741 242653402068 428677789066 986378 260952 509793892137 538865712590 51574 107473 633924026464 674365258790 985645 959877 699770930198 744174854417 989088 898533 5 3 15201474644 57983658364 975836 672024 126976889947 363836002637 955131 916955 454762384...
output:
1.33289e+11 1.61818e+11 1.6785e+11 1.436e+11 1.84121e+11 1.22368e+11 1.86268e+11 1.33713e+11 1.70436e+11 1.46575e+11 1.15899e+11 1.50615e+11 1.63257e+11 1.42058e+11 1.64006e+11 1.49297e+11 1.39213e+11 1.4375e+11 1.47969e+11 9.41858e+10 1.41615e+11 1.34467e+11 1.35382e+11 1.57717e+11 1.03294e+11 1.46...
result:
ok 40000 numbers
Test #19:
score: 0
Accepted
time: 100ms
memory: 3840kb
input:
40000 5 2 0 3 1 43 3 17 69 17 29 43 42 41 44 51 63 18 53 85 75 15 5 3 4 22 34 16 29 42 22 0 47 58 19 13 60 68 11 35 82 89 23 36 5 3 10 12 6 14 23 25 2 5 48 55 79 16 61 83 6 45 85 88 1 20 5 2 4 31 23 32 32 44 12 7 45 56 2 31 57 62 31 42 77 83 50 6 5 4 7 19 53 13 22 23 16 14 27 66 15 51 68 71 41 57 76...
output:
16.0724 16.5157 15.9376 17.7243 15.3695 16.3842 14.7981 20.01 17.2775 14.8604 14.9228 17.2709 18.0985 14.8638 14.2266 20.3219 17.8423 15.0508 11.6224 18.7981 19.0509 20.0033 17.7176 16.01 15.8752 16.5123 17.7209 17.78 17.4023 19.3728 20.5124 15.3695 12.1281 19.4386 19.9476 19.0509 11.8161 17.9704 18...
result:
ok 40000 numbers
Test #20:
score: 0
Accepted
time: 107ms
memory: 3840kb
input:
40000 5 3 7 24 35 164 28 55 74 311 64 77 591 330 78 95 48 518 97 100 623 164 5 4 6 18 106 365 23 54 5 11 55 60 160 818 64 73 1 327 78 88 377 275 5 2 1 49 603 129 50 61 366 282 74 76 82 231 76 78 599 394 81 90 21 17 5 2 5 6 154 416 14 15 66 24 40 44 105 765 58 68 78 37 80 83 898 17 5 2 12 23 369 223 ...
output:
50.2629 35.0742 65.4623 58.9861 55.6066 35.2089 54.8579 49.6394 47.2156 35.9708 65.4623 45.5604 22.4927 48.4239 57.7116 54.1416 27.2646 34.9003 48.8707 26.1708 86.0569 32.9099 26.8803 37.7409 43.0185 41.058 48.8116 47.7312 36.9922 54.3321 40.5389 46.076 27.327 41.3143 42.9594 39.4618 43.4619 67.0481...
result:
ok 40000 numbers
Test #21:
score: 0
Accepted
time: 97ms
memory: 4080kb
input:
40000 5 11 4 9 124 521 9 42 710 89 47 71 42 133 74 81 2 1 88 94 14 188 5 17 0 44 389 349 45 46 300 128 63 68 806 88 77 81 256 702 86 97 45 586 5 14 0 1 16 770 3 7 492 230 30 52 332 568 81 93 496 262 94 98 23 126 5 12 5 9 46 91 14 16 105 124 23 41 217 50 46 60 107 248 70 84 79 193 5 23 6 13 662 178 1...
output:
17.399 20.6437 19.6256 13.9704 18.2266 19.2414 18.1609 17.0181 16.7651 17.4614 17.7176 17.6585 18.3581 16.5123 18.1609 12.3185 19.5599 17.5895 13.2809 19.0542 18.5418 14.2233 13.4613 22.5484 17.0181 17.78 15.1132 12.6371 15.6223 18.7323 17.6619 19.6223 15.3662 18.7323 17.4614 18.289 14.5418 18.8605 ...
result:
ok 40000 numbers
Test #22:
score: 0
Accepted
time: 77ms
memory: 3792kb
input:
33334 6 2 186059186525 196044993143 932016 834248 226675536647 310789383887 74834 475243 401972786293 503120299340 23521 285656 615922245235 641294950872 760474 134547 684312472456 742865776917 787280 985037 894166287651 992174865342 242120 959832 6 2 96759018121 106326426165 16263 337234 1541213316...
output:
1.70317e+11 1.46932e+11 1.78329e+11 1.81767e+11 1.69774e+11 1.61616e+11 1.57327e+11 1.47511e+11 1.5832e+11 1.738e+11 1.79474e+11 1.59072e+11 1.70089e+11 1.36767e+11 1.85631e+11 1.74402e+11 1.454e+11 1.68406e+11 1.7476e+11 1.75726e+11 1.79415e+11 1.24933e+11 1.74731e+11 1.53284e+11 1.38455e+11 1.7555...
result:
ok 33334 numbers
Test #23:
score: 0
Accepted
time: 97ms
memory: 3840kb
input:
33334 6 3 8 28 32 58 38 56 14 84 66 81 12 5 85 95 44 48 96 98 21 77 99 100 24 45 6 3 14 52 10 58 56 62 13 80 66 70 26 31 74 79 3 4 83 86 5 17 90 96 36 15 6 2 4 9 7 0 11 34 16 27 41 48 11 12 50 56 51 33 69 85 39 4 96 98 60 23 6 4 7 10 73 21 33 36 2 41 42 43 7 86 65 68 5 88 76 86 36 35 86 88 25 13 6 4...
output:
23.0542 18.67 20.8999 17.0181 17.5271 18.9261 17.468 14.9228 19.5599 18.6766 17.7176 20.3219 18.8605 17.0838 21.8556 21.918 20.5124 17.5271 20.7718 17.5271 19.3762 20.7685 17.6519 17.4614 15.6847 15.9476 20.138 17.6519 19.7504 17.8423 17.9704 13.7176 19.1133 18.7323 18.0361 15.9376 21.9738 16.2561 1...
result:
ok 33334 numbers
Test #24:
score: 0
Accepted
time: 103ms
memory: 3856kb
input:
33334 6 3 15 17 138 91 28 40 24 826 49 57 62 248 57 59 371 15 65 71 340 492 90 97 472 207 6 4 1 11 165 80 26 43 69 192 58 62 34 0 67 76 18 55 78 82 212 276 82 100 55 0 6 2 6 12 525 14 15 17 218 33 17 19 251 429 39 52 113 585 58 77 223 191 89 95 384 57 6 4 7 21 6 194 22 24 41 225 31 40 138 381 44 64 ...
output:
53.5803 23.3895 69.2091 31.5798 39.5308 43.6522 43.278 60.4405 85.2292 47.1632 36.1022 68.904 64.2637 76.8385 52.1845 52.562 84.2801 103.984 37.9969 49.8197 62.2276 52.2435 35.199 33.36 56.4966 61.5179 68.0007 50.457 83.1966 41.7608 45.1168 52.6903 48.0562 51.672 85.8007 48.181 58.086 67.6823 35.392...
result:
ok 33334 numbers
Test #25:
score: 0
Accepted
time: 96ms
memory: 3908kb
input:
33334 6 29 0 12 417 506 13 42 51 80 44 59 389 276 60 61 496 359 65 76 48 546 79 85 107 30 6 21 9 13 75 682 24 28 184 258 63 65 131 375 71 85 182 29 86 96 148 722 97 99 188 191 6 29 4 13 71 303 14 16 315 646 28 33 395 302 43 49 233 96 57 78 466 172 87 92 144 11 6 28 0 5 17 224 10 12 69 179 34 48 426 ...
output:
14.7947 20.0033 16.3185 17.2086 16.7061 15.3662 21.0938 14.6042 19.0051 18.4894 18.3513 21.0838 24.2004 13.0804 15.179 17.399 16.7028 16.4466 15.6913 15.5566 17.7176 18.67 18.2266 16.128 22.6732 14.9852 17.7176 21.9114 17.5271 17.399 19.8785 16.3842 19.5599 16.128 15.6223 18.4828 22.7389 17.9704 17....
result:
ok 33334 numbers
Test #26:
score: 0
Accepted
time: 77ms
memory: 3944kb
input:
28572 7 2 128823193933 206363147796 916586 800328 238780643965 286506376498 656216 792423 315058416223 359651712246 379853 232969 417170446912 529818744727 985905 823065 530714023436 554515278916 968814 990231 557488057446 661929205751 296540 351951 792090500092 841104123481 896126 955265 7 2 666039...
output:
1.50874e+11 1.80943e+11 1.742e+11 1.66167e+11 1.51678e+11 1.74697e+11 1.56358e+11 1.69879e+11 1.60295e+11 1.6053e+11 1.74015e+11 1.82236e+11 1.57118e+11 1.70335e+11 1.74159e+11 1.73311e+11 1.74997e+11 1.6385e+11 1.76441e+11 1.53353e+11 1.87499e+11 1.72651e+11 1.8238e+11 1.72998e+11 1.74633e+11 1.326...
result:
ok 28572 numbers
Test #27:
score: 0
Accepted
time: 94ms
memory: 3740kb
input:
28572 7 2 3 6 1 0 11 13 15 43 33 44 9 88 55 64 21 28 65 66 1 1 72 78 6 29 83 84 17 22 7 4 4 6 39 54 8 14 29 57 31 34 13 6 40 41 5 27 49 51 18 10 59 73 34 49 77 82 48 18 7 4 16 21 36 18 30 36 51 7 38 43 63 33 46 50 3 0 55 61 20 5 71 75 18 55 89 93 23 13 7 3 10 17 11 41 35 37 14 4 39 41 7 0 50 65 18 2...
output:
20.0067 15.4352 17.5895 18.7323 21.9114 19.4975 18.7981 15.688 20.3252 18.1019 12.2561 24.46 19.3695 18.417 17.908 17.3366 21.5404 21.2118 16.3185 21.4057 21.5995 17.9737 22.4203 18.2957 17.0838 19.5042 18.6766 23.5632 23.6979 18.0985 18.23 14.5451 20.0067 19.3071 24.2038 18.6076 18.7423 24.8408 15....
result:
ok 28572 numbers
Test #28:
score: 0
Accepted
time: 97ms
memory: 3900kb
input:
28572 7 3 1 2 340 335 25 35 243 618 47 51 418 375 60 65 21 31 66 69 218 5 87 94 227 4 96 98 52 644 7 3 1 7 2 95 23 25 437 530 35 41 136 11 66 68 18 588 69 72 670 175 72 82 323 81 88 99 86 430 7 3 1 4 70 75 7 13 103 877 20 48 23 12 53 58 82 37 61 65 719 189 69 83 238 21 90 95 347 262 7 4 2 9 349 580 ...
output:
55.9282 59.1696 48.9297 50.917 102.218 32.2171 73.6069 51.2221 47.534 45.6328 55.1665 55.4161 46.4668 49.1891 49.8197 52.1814 45.0546 50.0826 33.9346 93.6202 41.1104 49.3174 53.2552 92.0339 53.6327 43.9775 52.6903 65.9712 36.8574 62.5393 39.6623 36.2137 81.6791 72.0175 60.119 48.5487 37.5704 62.2897...
result:
ok 28572 numbers
Test #29:
score: 0
Accepted
time: 99ms
memory: 3840kb
input:
28572 7 26 0 3 419 371 11 13 379 140 14 19 226 577 21 22 11 74 28 55 42 507 57 75 394 69 90 96 37 87 7 16 1 11 63 788 15 30 288 221 44 46 302 385 53 60 641 29 61 88 145 45 91 96 406 258 98 100 281 239 7 11 6 12 225 228 26 28 177 215 31 36 327 6 37 41 201 369 60 62 201 786 71 78 520 215 81 99 181 36 ...
output:
16.8899 22.4203 23.0609 27.0641 19.6256 17.9704 17.4614 17.5895 21.2218 17.0838 16.7651 18.6109 15.8752 24.6569 14.9919 18.4794 18.8605 22.2922 20.6537 17.0804 16.128 19.7504 26.9984 18.7323 16.6371 17.3366 16.128 23.3726 20.6404 18.3547 20.8933 26.6209 19.5699 21.6028 17.2709 19.6256 17.399 26.9984...
result:
ok 28572 numbers
Test #30:
score: 0
Accepted
time: 71ms
memory: 3844kb
input:
25000 8 3 118405411660 185470941632 60277 719313 441444317941 457848388705 987963 632259 463845444573 490452887031 794779 859355 615555084344 639548718082 841895 650051 698043469193 718026115289 987066 677414 726247716554 734692970513 373028 503163 829429030148 874778564122 999302 992987 89258122539...
output:
1.70015e+11 1.69268e+11 1.81751e+11 1.7354e+11 1.68989e+11 1.79141e+11 1.07473e+11 1.57722e+11 1.78155e+11 1.82032e+11 1.63312e+11 1.63161e+11 1.62271e+11 1.4536e+11 1.78278e+11 1.57872e+11 1.86543e+11 1.63393e+11 1.66954e+11 1.75668e+11 1.82364e+11 1.5985e+11 1.85429e+11 1.81905e+11 1.80791e+11 1.6...
result:
ok 25000 numbers
Test #31:
score: 0
Accepted
time: 97ms
memory: 3836kb
input:
25000 8 2 2 4 19 79 6 40 2 1 41 44 44 49 49 57 7 20 60 69 1 7 76 77 31 10 79 89 33 66 93 98 56 1 8 3 5 10 3 34 16 28 9 20 37 45 52 41 47 51 7 28 53 56 6 49 59 64 31 22 67 68 14 24 77 95 19 23 8 4 15 27 33 16 28 33 27 62 39 46 41 57 52 55 95 4 59 66 4 0 66 68 77 2 73 75 3 3 83 94 85 3 8 3 7 9 54 12 2...
output:
25.4714 17.0838 18.2266 20.7028 17.4647 19.4319 18.9228 21.7832 18.9329 14.9886 22.6108 19.7504 17.5928 16.3842 19.8785 18.9261 21.2218 16.8933 21.7866 21.5962 16.3876 18.7357 17.9737 15.8752 18.8638 18.8671 21.1595 17.908 17.7209 19.4319 17.4614 18.289 18.1609 20.6404 16.0033 17.2086 16.4466 19.878...
result:
ok 25000 numbers
Test #32:
score: 0
Accepted
time: 100ms
memory: 3900kb
input:
25000 8 2 2 4 576 132 5 12 168 224 12 18 670 10 25 34 924 59 36 42 289 191 43 71 352 42 85 90 379 15 94 96 124 52 8 4 0 7 537 144 11 16 16 206 21 23 141 60 25 32 303 253 40 48 703 98 51 58 859 19 74 93 19 594 96 99 230 405 8 2 2 4 6 11 16 21 215 6 33 36 130 338 41 45 194 190 55 60 8 246 63 65 306 59...
output:
89.9485 54.5226 47.6064 84.9205 57.3208 37.6161 93.0553 55.9872 44.8606 74.4902 102.52 71.4984 57.4656 111.174 74.1025 62.4771 48.2303 55.9872 66.7466 79.1998 90.1883 87.7711 68.7659 62.2897 101.259 42.1285 53.0056 81.2292 57.6561 39.649 49.508 47.4851 56.2537 44.3552 109.64 71.3838 72.454 89.8694 4...
result:
ok 25000 numbers
Test #33:
score: 0
Accepted
time: 94ms
memory: 4008kb
input:
25000 8 26 5 6 63 14 12 13 311 144 23 25 444 324 28 29 202 351 36 43 79 182 60 64 564 238 64 72 17 49 87 88 62 873 8 27 4 12 30 8 16 18 22 13 22 28 470 330 40 47 60 87 50 59 529 196 71 86 98 147 89 97 270 100 97 98 51 711 8 10 5 17 405 213 20 23 170 603 23 33 283 249 42 46 310 635 46 48 77 147 49 51...
output:
18.0985 19.5008 24.9165 21.5928 20.6404 17.78 13.2709 19.4975 22.6108 19.3762 17.0804 20.2004 16.8275 17.5995 19.0509 15.3695 22.9918 19.8852 19.0542 21.0838 22.6141 18.7323 18.2266 17.6519 20.2004 23.3726 19.8785 18.3614 18.6076 26.5585 23.8194 17.6652 18.2266 26.68 22.4336 17.1495 20.6404 20.0067 ...
result:
ok 25000 numbers
Test #34:
score: 0
Accepted
time: 67ms
memory: 3900kb
input:
22223 9 3 35696533104 144091283802 449305 178318 161692977121 164578427999 79328 387267 185856318558 271826286636 840233 184614 274833632062 279703208464 664121 273244 294172017180 294908306767 972072 737431 328098324304 356660693080 119540 97737 399422629069 567080031986 472328 784284 621465976754 ...
output:
1.72443e+11 1.56632e+11 1.76335e+11 1.74278e+11 1.80483e+11 1.63643e+11 1.64012e+11 1.71927e+11 1.86148e+11 1.79588e+11 1.79613e+11 1.82269e+11 1.7731e+11 1.8136e+11 1.68393e+11 1.58613e+11 1.81601e+11 1.84375e+11 1.73783e+11 1.7986e+11 1.78638e+11 1.61692e+11 1.54435e+11 1.68522e+11 1.78069e+11 1.7...
result:
ok 22223 numbers
Test #35:
score: 0
Accepted
time: 97ms
memory: 3784kb
input:
22223 9 4 0 4 1 0 6 10 13 27 15 16 9 47 18 30 45 24 36 44 36 6 49 63 39 13 79 85 41 14 89 95 26 21 95 99 28 55 9 2 0 10 2 2 25 26 3 1 27 30 84 6 44 60 85 15 60 67 9 76 68 70 15 4 70 73 36 63 78 90 92 6 95 97 33 7 9 3 1 8 14 20 12 22 51 2 33 38 34 0 43 44 12 7 48 59 16 62 63 66 13 13 74 80 34 7 82 87...
output:
19.6223 27.3204 20.45 24.5812 18.6799 24.5812 21.3399 22.1019 17.78 19.7504 18.6142 25.7241 20.2628 19.6256 24.3909 19.4319 23.3205 24.0099 18.7323 18.7457 21.0214 22.6208 18.3547 24.3909 23.7537 24.8341 23.3726 24.7717 25.028 19.7504 18.9228 18.9885 23.5632 18.1676 16.6371 20.8966 19.2414 19.5008 1...
result:
ok 22223 numbers
Test #36:
score: 0
Accepted
time: 96ms
memory: 3980kb
input:
22223 9 3 12 20 137 558 25 30 542 358 30 38 375 152 41 42 481 248 47 48 17 371 51 62 62 199 76 82 138 34 86 95 66 127 98 100 371 245 9 4 3 9 428 361 15 20 815 28 24 33 526 101 33 41 570 430 43 52 80 13 59 62 12 895 63 72 185 46 84 88 10 9 91 97 79 101 9 3 3 12 493 103 16 23 193 238 26 35 777 141 36 ...
output:
66.8714 52.8151 76.2701 47.534 70.4969 110.215 57.2684 107.298 61.6591 63.114 50.3944 57.0055 51.16 55.4192 50.9202 109.194 72.7858 89.3605 46.1315 52.3683 54.8477 73.1504 53.4421 84.7202 61.1995 122.869 94.1291 75.377 89.2459 61.1435 42.8937 74.1815 45.3175 48.6735 57.5144 77.9981 77.0424 44.559 48...
result:
ok 22223 numbers
Test #37:
score: 0
Accepted
time: 98ms
memory: 3964kb
input:
22223 9 23 0 5 99 8 7 35 8 443 37 40 48 917 41 43 279 485 56 58 54 913 65 72 322 18 73 83 63 146 86 92 73 902 93 100 624 89 9 23 2 12 10 60 13 15 94 587 17 19 145 78 23 25 575 127 31 35 222 743 48 59 424 136 61 64 193 431 70 80 45 693 86 99 152 175 9 13 0 2 2 29 8 10 72 848 10 27 482 429 30 35 148 3...
output:
21.6619 17.908 26.6833 17.4023 21.5304 31.7637 18.9228 24.0099 17.468 20.2595 15.3695 18.23 18.7357 21.1494 23.6289 19.3695 18.0361 22.4369 29.4123 21.0247 21.2185 17.3366 19.0509 22.496 25.4714 16.8966 20.8933 23.3105 19.6914 19.1857 24.5812 24.5846 20.0756 19.3038 19.688 18.3513 21.468 19.8161 18....
result:
ok 22223 numbers
Test #38:
score: 0
Accepted
time: 69ms
memory: 3900kb
input:
20000 10 4 44477513941 120485254018 224521 521705 185574877925 188048459403 200413 777378 237817597101 275172316645 958833 29823 279625206638 304352862030 199970 802902 421282206041 487650779885 980953 566530 519778297562 641574477792 148936 408791 642059470335 659334418006 714257 807794 69390192799...
output:
1.65445e+11 1.59947e+11 1.59695e+11 1.79034e+11 1.82868e+11 1.38506e+11 1.76312e+11 1.8514e+11 1.61289e+11 1.81428e+11 1.79717e+11 1.78498e+11 1.77458e+11 1.71221e+11 1.56499e+11 1.57683e+11 1.71076e+11 1.74809e+11 1.66498e+11 1.81368e+11 1.76616e+11 1.8226e+11 1.8462e+11 1.88106e+11 1.80341e+11 1.6...
result:
ok 20000 numbers
Test #39:
score: 0
Accepted
time: 97ms
memory: 4008kb
input:
20000 10 4 1 3 18 66 10 15 14 67 16 17 11 82 18 27 3 10 29 32 71 13 42 47 15 16 48 56 6 58 56 67 24 4 74 75 13 31 86 87 11 22 10 3 3 13 10 8 21 27 63 9 30 36 14 79 36 44 44 19 48 57 2 4 58 70 1 16 74 76 36 23 78 82 6 15 82 84 42 36 92 99 31 0 10 2 0 3 35 50 8 10 11 59 11 32 28 23 32 40 29 3 45 48 39...
output:
17.0181 20.7061 28.4666 22.8013 24.7093 19.4319 22.4269 23.12 24.2104 20.0033 18.4794 19.5632 24.5812 23.9475 26.4238 23.3762 24.4667 22.6108 24.7093 16.5157 20.5124 17.6585 19.8128 20.7718 16.5223 16.7061 20.2628 21.2151 25.409 28.6504 15.9409 19.7504 19.5599 20.3909 19.1166 25.8522 19.5632 25.2185...
result:
ok 20000 numbers
Test #40:
score: 0
Accepted
time: 99ms
memory: 4072kb
input:
20000 10 2 2 6 74 129 6 11 33 294 17 24 524 348 26 29 41 813 32 38 72 467 39 49 52 324 60 66 268 638 73 76 81 708 78 84 146 750 86 90 295 58 10 2 0 13 187 371 15 17 411 10 25 32 8 259 35 54 127 732 54 56 176 567 57 61 96 71 63 66 408 499 76 80 270 244 80 84 299 374 86 98 66 118 10 4 4 15 5 22 18 19 ...
output:
126.435 112.382 38.1217 64.5066 42.9528 79.5115 78.9337 135.014 54.7788 40.7918 64.1323 46.6409 66.7333 97.1347 73.8498 63.0451 67.8795 61.8989 67.3803 63.4883 65.0879 109.522 60.7558 98.6411 71.3181 68.8942 104.247 83.5119 76.3918 52.1712 46.7231 69.0323 79.1243 69.8432 99.0328 60.2602 100.931 80.2...
result:
ok 20000 numbers
Test #41:
score: 0
Accepted
time: 98ms
memory: 3792kb
input:
20000 10 23 0 8 12 18 11 23 190 772 35 36 121 34 37 39 384 117 40 43 302 1 47 58 423 432 76 80 524 164 86 91 470 460 93 95 7 27 96 99 257 585 10 29 2 4 39 81 4 5 440 247 6 20 107 590 27 29 6 17 32 35 29 825 37 39 89 275 42 44 61 88 46 48 270 408 53 69 570 104 85 89 162 210 10 14 5 7 350 315 17 24 18...
output:
22.3579 16.8275 28.1446 20.4566 22.3057 20.0033 25.4781 26.2466 18.2233 23.1857 22.9294 22.0395 20.7061 20.3876 20.1937 18.417 21.9738 27.9541 17.5995 23.2023 20.3219 17.5271 22.8113 23.6289 19.0509 24.9623 21.1494 28.4732 23.3829 19.8819 21.731 30.0004 23.6913 18.6076 21.0971 24.0923 20.5124 27.507...
result:
ok 20000 numbers
Test #42:
score: 0
Accepted
time: 71ms
memory: 4008kb
input:
18182 11 3 31178638702 58737436442 541438 936550 67800250425 94778245225 52330 17723 131995941492 226554686911 278027 525453 233338377575 257250197813 800472 971998 321625951898 325889896213 147337 405620 490006281837 516729057615 357927 593866 534867015877 645666868249 313036 843543 763329912333 77...
output:
1.87668e+11 1.79095e+11 1.76647e+11 1.79399e+11 1.5093e+11 1.69358e+11 1.64825e+11 1.76947e+11 1.77512e+11 1.63076e+11 1.79891e+11 1.62386e+11 1.84082e+11 1.66663e+11 1.56505e+11 1.85541e+11 1.6578e+11 1.61981e+11 1.61271e+11 1.85352e+11 1.60795e+11 1.58496e+11 1.81438e+11 1.72048e+11 1.62383e+11 1....
result:
ok 18182 numbers
Test #43:
score: 0
Accepted
time: 93ms
memory: 3900kb
input:
18182 11 4 1 7 2 0 24 25 57 1 26 36 16 7 36 38 24 10 44 45 23 2 47 54 30 31 55 58 52 26 71 74 41 1 75 78 41 7 84 91 3 2 97 98 12 3 11 3 5 10 35 9 16 20 8 1 23 25 47 50 40 43 13 74 44 51 11 33 51 59 24 27 61 65 11 75 67 78 64 7 79 80 4 39 95 97 35 20 98 99 4 92 11 3 3 5 65 1 8 17 21 30 19 23 4 22 25 ...
output:
18.417 23.7537 23.5008 24.3285 19.5599 22.7456 18.417 19.6223 24.7717 20.8309 20.8933 21.0247 28.3318 23.7637 18.8605 20.3219 20.0033 18.9261 20.0033 24.5188 23.1923 25.7374 19.4942 26.6243 27.1232 22.7456 22.8013 25.6684 25.6029 19.4319 19.9476 18.1019 25.3433 22.3712 20.0067 28.1413 20.4533 16.955...
result:
ok 18182 numbers
Test #44:
score: 0
Accepted
time: 95ms
memory: 3976kb
input:
18182 11 2 0 4 404 171 6 12 186 231 13 20 374 474 29 31 103 8 33 43 210 354 48 52 294 263 53 60 13 99 64 67 421 73 71 73 56 608 74 87 572 322 90 92 46 6 11 3 10 18 410 114 28 29 215 653 30 36 32 19 39 41 11 2 44 46 150 66 49 51 13 43 57 68 241 473 69 72 77 873 74 80 351 0 90 93 946 20 94 99 142 744 ...
output:
113.009 85.2918 73.2294 55.4228 126.622 68.8907 110.72 69.0878 123.243 57.899 98.5789 101.699 121.72 53.002 72.7036 49.948 77.538 53.9577 83.193 143.141 139.408 65.6493 72.2604 98.1322 60.1221 133.861 113.657 82.4412 115.686 71.8892 77.7383 98.586 66.477 103.473 52.8875 92.8022 65.334 77.6628 70.102...
result:
ok 18182 numbers
Test #45:
score: 0
Accepted
time: 96ms
memory: 4072kb
input:
18182 11 12 2 5 341 33 6 7 369 96 8 11 347 23 15 17 73 16 19 21 36 93 29 35 38 595 48 52 319 184 61 62 874 76 66 71 330 121 80 83 267 343 85 90 228 27 11 23 2 4 378 296 6 8 1 30 9 10 306 170 15 16 175 649 17 24 159 33 32 39 88 444 40 45 287 156 46 49 466 41 51 59 301 686 71 77 726 167 82 95 38 9 11 ...
output:
24.9198 17.7209 20.0067 20.1937 21.6028 19.2447 20.7028 19.6256 20.6404 21.0214 22.8637 29.8133 21.2151 21.7409 19.7504 22.6765 19.4352 20.519 20.7028 23.9475 27.4418 23.4517 20.6404 29.6128 28.6047 32.5422 21.0281 20.3219 23.2023 18.7357 25.7931 32.5979 21.7208 21.7208 19.3071 22.8704 21.0214 19.43...
result:
ok 18182 numbers
Test #46:
score: 0
Accepted
time: 59ms
memory: 3900kb
input:
2000 100 5 1942297624 9876178490 9 13 20933932246 25437691547 6 18 25784233050 30905811670 5 15 47773270351 50991199412 7 5 61751701586 67980242949 12 15 68263746951 69391830153 6 1 82718290335 86031544742 9 10 86574500521 87651881457 3 14 90340839367 90562611396 21 9 94139183084 95878805416 1 0 973...
output:
1.88736e+11 1.86806e+11 1.85362e+11 1.8727e+11 1.89246e+11 1.88677e+11 1.88301e+11 1.8876e+11 1.8659e+11 1.89611e+11 1.89718e+11 1.88837e+11 1.88907e+11 1.89032e+11 1.90302e+11 1.88525e+11 1.87118e+11 1.89639e+11 1.87528e+11 1.87696e+11 1.8831e+11 1.8856e+11 1.89961e+11 1.89942e+11 1.89163e+11 1.865...
result:
ok 2000 numbers
Test #47:
score: 0
Accepted
time: 59ms
memory: 3844kb
input:
2000 100 18 836339689 1596542939 7 9 19610112549 19699319144 18 0 30413237125 36856670808 11 3 44474689632 50842351780 6 10 50975265385 59477746485 17 1 64280707354 66078442647 10 17 66594920068 66978606394 6 5 69017262095 70628805818 8 15 75050447006 82451558109 7 10 83236899037 92650937905 14 12 9...
output:
1.90101e+11 1.87166e+11 1.89928e+11 1.87445e+11 1.89236e+11 1.87469e+11 1.85244e+11 1.87901e+11 1.89832e+11 1.90411e+11 1.899e+11 1.83682e+11 1.87948e+11 1.89755e+11 1.88804e+11 1.89054e+11 1.8886e+11 1.90164e+11 1.89842e+11 1.88604e+11 1.88309e+11 1.87193e+11 1.90063e+11 1.88896e+11 1.90034e+11 1.8...
result:
ok 2000 numbers
Test #48:
score: 0
Accepted
time: 60ms
memory: 3844kb
input:
2000 100 27 13705646666 16121551103 10 6 17371494635 19789090386 2 11 27975869738 28335857931 2 6 30262503042 31530091031 2 19 34866060961 37431530895 21 8 42153752740 44966275872 3 9 58217796487 60141385767 8 9 61276941498 70815574448 19 6 73363394137 76856561901 2 24 92146357767 100707132801 23 3 ...
output:
1.87665e+11 1.89838e+11 1.87883e+11 1.89441e+11 1.90148e+11 1.88794e+11 1.89155e+11 1.88906e+11 1.88433e+11 1.89578e+11 1.89826e+11 1.8745e+11 1.87851e+11 1.89442e+11 1.89072e+11 1.89787e+11 1.89334e+11 1.89021e+11 1.87505e+11 1.89159e+11 1.89777e+11 1.89735e+11 1.86069e+11 1.88545e+11 1.88439e+11 1...
result:
ok 2000 numbers
Test #49:
score: 0
Accepted
time: 59ms
memory: 3792kb
input:
2000 100 40 19358274532 20214929118 10 11 21155632323 24512933061 17 0 30134318389 30674524320 2 2 31982459470 35247316163 8 4 36585935078 40363775975 1 0 44887652182 45784308674 1 2 56975558983 65057422266 9 6 91329346365 91483258440 9 5 93743902487 95195054143 5 16 110693603751 114553397177 20 0 1...
output:
1.88302e+11 1.86125e+11 1.87162e+11 1.89612e+11 1.90065e+11 1.90412e+11 1.88989e+11 1.8775e+11 1.86186e+11 1.86296e+11 1.89587e+11 1.90319e+11 1.88334e+11 1.8687e+11 1.899e+11 1.89473e+11 1.89235e+11 1.89287e+11 1.89862e+11 1.89945e+11 1.87704e+11 1.8979e+11 1.86998e+11 1.89353e+11 1.87516e+11 1.881...
result:
ok 2000 numbers
Test #50:
score: 0
Accepted
time: 55ms
memory: 4004kb
input:
2000 100 44 6883099119 9466427519 12 8 10885411788 23177371555 3 1 24775235205 34248251417 7 22 34329452075 35607488203 7 11 37761037704 40029847856 3 8 52727003869 61904302732 3 15 70608508372 72377325485 7 7 72606231211 73738895023 13 3 74040025053 82436237679 11 19 82631716150 92418420138 19 0 94...
output:
1.86167e+11 1.87057e+11 1.8942e+11 1.88575e+11 1.90434e+11 1.88528e+11 1.90203e+11 1.87973e+11 1.90052e+11 1.89549e+11 1.88478e+11 1.89583e+11 1.87479e+11 1.88989e+11 1.84281e+11 1.88681e+11 1.88789e+11 1.89405e+11 1.8876e+11 1.88746e+11 1.90265e+11 1.88325e+11 1.87627e+11 1.90041e+11 1.87194e+11 1....
result:
ok 2000 numbers
Test #51:
score: 0
Accepted
time: 60ms
memory: 3904kb
input:
2000 100 55 1803819865 3012893217 7 18 11379171824 18612628996 21 8 18705857964 19693484707 4 21 20019259659 22363889135 8 1 22650177222 25169109650 7 0 25839225001 27477389613 2 0 29449201321 29935537834 2 18 30714218932 35542305670 5 6 51626565556 51885095744 8 17 59549448199 63296188906 5 0 65509...
output:
1.90266e+11 1.88846e+11 1.89853e+11 1.89356e+11 1.90269e+11 1.88896e+11 1.85853e+11 1.88318e+11 1.88023e+11 1.87826e+11 1.89668e+11 1.88696e+11 1.89372e+11 1.8824e+11 1.88907e+11 1.87592e+11 1.8694e+11 1.88078e+11 1.89789e+11 1.90174e+11 1.89183e+11 1.89783e+11 1.88554e+11 1.88323e+11 1.90188e+11 1....
result:
ok 2000 numbers
Test #52:
score: 0
Accepted
time: 68ms
memory: 5424kb
input:
1 200000 245736109 3166345 4729069 505392 27528 6028058 6271030 337405 297221 7419713 12004974 9361 132527 13930856 14949932 556981 421138 16566934 17765525 606830 890832 17867131 26728831 492976 246717 33044743 35802435 523133 111934 39252359 48802514 954840 726425 49223506 51853633 615869 532743 5...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475898029.27094', error '0.00000'
Test #53:
score: 0
Accepted
time: 61ms
memory: 5460kb
input:
1 200000 59746853 178482 7344834 691264 108579 7416720 12125705 463481 81452 12725369 14142734 226735 364225 14547829 14596615 947623 983595 18124437 20087374 28956 3678 21607610 22169146 367142 908588 23308136 24382397 140205 113958 25198984 27994499 638110 881269 28260316 29286640 321612 372694 29...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475558563.55667', error '0.00000'
Test #54:
score: 0
Accepted
time: 65ms
memory: 5592kb
input:
1 200000 23500700 562290 23092250 119164 947601 24999626 25059898 56806 398434 26596600 27488242 877749 938091 36344495 38011107 961224 955797 40950408 41070541 492657 266436 42597099 44114713 321817 265758 61290259 61669766 111406 986044 62013018 65609405 66762 131948 68473095 68647471 857316 34998...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475267110.41382', error '0.00000'
Test #55:
score: 0
Accepted
time: 68ms
memory: 5520kb
input:
1 200000 692287252 8613842 9603129 68280 298111 9748093 11052824 325813 39733 16733823 17300095 714407 583209 17787930 18128689 886930 758999 18852505 20249255 894676 399389 23809972 24787332 574109 549503 30023527 41757130 568981 147565 42572533 46359973 15698 21126 52805330 53152484 314386 630094 ...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475876192.50906', error '0.00000'
Test #56:
score: 0
Accepted
time: 68ms
memory: 5596kb
input:
1 200000 361073803 7871412 9070719 1094 632220 9321608 16857957 125203 150650 17099418 18141415 192907 586485 18323117 19600030 398359 200669 26376398 30812182 420878 375455 35250000 38077121 988835 413918 40030344 40565966 218427 117215 40727644 42251900 966053 717397 48154371 50963814 338362 86405...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475941930.41382', error '0.00000'
Test #57:
score: 0
Accepted
time: 65ms
memory: 5436kb
input:
1 200000 175084547 1452185 1757801 287144 613092 2514237 4595084 836141 574211 7293478 8358044 1865 2407 9279363 10583542 477749 107082 14430149 19484758 495520 835784 21141859 21807026 952060 986730 22860164 23822165 958391 996347 25177076 25194887 433156 896920 26507634 31014101 999857 970605 3120...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475167530.60428', error '0.00000'
Test #58:
score: 0
Accepted
time: 61ms
memory: 5460kb
input:
1 200000 548903802 1060801 3919637 341299 825859 4576231 6803178 848887 471772 7325211 10689077 282280 171064 12001327 12349368 841953 695977 14490133 20391898 2337 55427 23720332 28271003 280101 194726 29151569 29432309 15810 782215 30757020 36265975 245647 922543 36645213 37208879 908260 799385 38...
output:
1.90474e+11
result:
ok found '190474000000.00000', expected '190473978724.12811', error '0.00000'
Test #59:
score: 0
Accepted
time: 64ms
memory: 5504kb
input:
1 200000 512657649 2683126 4962755 97450 369335 6677640 13149612 132371 65891 15310481 15936053 967372 967748 16513735 18414612 165616 325414 20814350 21610291 377301 215435 23284587 26243287 924920 861752 28516578 30060213 329865 87256 31800501 32945982 965449 882071 35012486 39013553 98956 121679 ...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475495722.79477', error '0.00000'
Test #60:
score: 0
Accepted
time: 65ms
memory: 5448kb
input:
1 200000 181444201 1873011 4783880 516983 216724 5568400 5706128 87710 20859 7402317 7623578 222765 937235 7947991 8780051 586441 666200 10328569 18273806 38149 56854 19773950 20333971 232599 90109 20373078 22742225 960566 108355 25928918 27389309 942407 743227 33114857 33287399 989053 968765 351706...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475313385.84238', error '0.00000'
Test #61:
score: 0
Accepted
time: 68ms
memory: 5424kb
input:
1 200000 17390802 4606590 5522939 831971 767251 9594356 17368897 998526 890377 18192082 21191086 828145 887895 22304840 23079238 41887 116071 26030327 34497763 248100 86835 35139982 38239919 766766 93028 47471045 49354607 868067 815134 53204778 59376242 478285 854792 63583224 65591751 297980 198877 ...
output:
1.90475e+11
result:
ok found '190475000000.00000', expected '190475695250.60428', error '0.00000'
Test #62:
score: 0
Accepted
time: 73ms
memory: 5500kb
input:
1 200000 3 999999800000 999999800001 999998 999997 999999800001 999999800002 999976 999995 999999800002 999999800003 999986 999999 999999800003 999999800004 999992 1000000 999999800004 999999800005 1000000 1000000 999999800005 999999800006 1000000 1000000 999999800006 999999800007 999998 999986 9999...
output:
1.95419e+11
result:
ok found '195419000000.00000', expected '195420617713.56143', error '0.00001'
Test #63:
score: 0
Accepted
time: 73ms
memory: 5468kb
input:
1 200000 4 999999800000 999999800001 999995 999983 999999800001 999999800002 999997 999999 999999800002 999999800003 999994 999981 999999800003 999999800004 999998 999992 999999800004 999999800005 999998 999983 999999800005 999999800006 999979 999997 999999800006 999999800007 999999 999971 999999800...
output:
1.94183e+11
result:
ok found '194183000000.00000', expected '194184506263.91714', error '0.00001'
Test #64:
score: 0
Accepted
time: 72ms
memory: 5572kb
input:
1 200000 5 999999800000 999999800001 999994 999993 999999800001 999999800002 999999 999996 999999800002 999999800003 1000000 999999 999999800003 999999800004 999986 999990 999999800004 999999800005 999999 999998 999999800005 999999800006 999985 999995 999999800006 999999800007 999985 999990 99999980...
output:
1.93441e+11
result:
ok found '193441000000.00000', expected '193442839309.45715', error '0.00001'
Test #65:
score: 0
Accepted
time: 72ms
memory: 5420kb
input:
1 200000 6 999999800000 999999800001 999991 999983 999999800001 999999800002 999998 999999 999999800002 999999800003 1000000 999985 999999800003 999999800004 999999 999998 999999800004 999999800005 999983 999991 999999800005 999999800006 999997 999998 999999800006 999999800007 999995 999997 99999980...
output:
1.92947e+11
result:
ok found '192947000000.00000', expected '192948394598.70572', error '0.00001'
Test #66:
score: 0
Accepted
time: 67ms
memory: 5424kb
input:
1 200000 7 999999800000 999999800001 999998 999989 999999800001 999999800002 999996 999996 999999800002 999999800003 999980 999994 999999800003 999999800004 999995 1000000 999999800004 999999800005 999997 999990 999999800005 999999800006 999997 999974 999999800006 999999800007 999998 999972 99999980...
output:
1.92595e+11
result:
ok found '192595000000.00000', expected '192595219868.72049', error '0.00000'
Test #67:
score: 0
Accepted
time: 74ms
memory: 5516kb
input:
1 200000 8 999999800000 999999800001 999999 999998 999999800001 999999800002 999995 999999 999999800002 999999800003 999988 999984 999999800003 999999800004 999983 999998 999999800004 999999800005 1000000 999999 999999800005 999999800006 999989 999986 999999800006 999999800007 999996 999988 99999980...
output:
1.92329e+11
result:
ok found '192329000000.00000', expected '192330338783.87286', error '0.00001'
Test #68:
score: 0
Accepted
time: 76ms
memory: 5464kb
input:
1 200000 9 999999800000 999999800001 999992 999992 999999800001 999999800002 999998 999999 999999800002 999999800003 1000000 999988 999999800003 999999800004 999974 999997 999999800004 999999800005 999990 999986 999999800005 999999800006 999986 999996 999999800006 999999800007 999988 999982 99999980...
output:
1.92123e+11
result:
ok found '192123000000.00000', expected '192124320215.50143', error '0.00001'
Test #69:
score: 0
Accepted
time: 65ms
memory: 5436kb
input:
1 200000 10 999999800000 999999800001 1000000 1000000 999999800001 999999800002 999995 999982 999999800002 999999800003 999994 999990 999999800003 999999800004 999997 999976 999999800004 999999800005 999992 999980 999999800005 999999800006 1000000 999999 999999800006 999999800007 999990 999995 99999...
output:
1.91959e+11
result:
ok found '191959000000.00000', expected '191959505310.18857', error '0.00000'