QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#870928 | #4213. Circles | superguymj | AC ✓ | 58ms | 10968kb | C++20 | 1.1kb | 2025-01-25 18:20:56 | 2025-01-25 18:21:00 |
Judging History
answer
#include <bits/stdc++.h>
#define rep(i,x,y) for (int i = x; i <= y; i++)
using namespace std;
using i64 = long long;
constexpr i64 inf = 1E18;
int main() {
int n;
cin >> n;
vector<int> a(n);
rep(i,0,n-1) {
cin >> a[i];
}
vector<array<array<i64, 3>, 3>> f(n);
rep(i,0,n-1) {
rep(j,0,2) {
rep(k,0,2) {
f[i][j][k] = inf;
}
}
}
f[0][0][0] = 0;
f[0][1][1] = a[0];
f[0][2][2] = 2 * a[0];
rep(i,1,n-1) {
rep(j,0,2) {
f[i][j][0] = f[i - 1][j][2];
f[i][j][1] = min(f[i - 1][j][1], f[i - 1][j][2]) + a[i];
f[i][j][2] = min({f[i - 1][j][0], f[i - 1][j][1], f[i - 1][j][2]}) + 2 * a[i];
}
}
rep(i,2,n-1) {
i64 ans = inf;
rep(j,0,2) {
rep(k,0,2) {
if (j + k >= 2) {
ans = min(ans, f[i][j][k]);
}
}
}
cout << fixed << setprecision(2) << double(ans) / 2 << " \n"[i == n - 1];
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3968kb
input:
4 20 20 20 15
output:
30.00 35.00
result:
ok 2 numbers
Test #2:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
6 1 2 1 2 1 2
output:
2.00 2.00 3.00 3.00
result:
ok 4 numbers
Test #3:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
12 1 1 1 3 1 1 2 5 3 2 1 2
output:
1.50 2.00 3.00 3.00 4.00 5.00 8.00 8.00 9.00 9.00
result:
ok 10 numbers
Test #4:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
8 76541 37453 93737 35922 63773 5940 28762 45072
output:
103865.50 73375.00 137148.00 79315.00 108077.00 124387.00
result:
ok 6 numbers
Test #5:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
10 88248 12158 71427 47523 11361 30736 66802 8731 49595 20307
output:
83585.00 59681.00 71042.00 90417.00 137844.00 99148.00 148743.00 119455.00
result:
ok 8 numbers
Test #6:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
10 72671 76100 53862 60782 37033 10 13615 44698 99653 88716
output:
101316.50 126533.00 150224.00 136892.00 150507.00 177181.00 208274.00 270306.00
result:
ok 8 numbers
Test #7:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
9 96327 25014 23955 98789 83701 80857 62506 54095 80374
output:
48969.00 120282.00 132670.00 203983.00 195176.00 249271.00 275550.00
result:
ok 7 numbers
Test #8:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
8 33485 85653 10137 20214 89459 28591 80264 26622
output:
43622.00 43622.00 63836.00 92427.00 92427.00 119049.00
result:
ok 6 numbers
Test #9:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
7 5701 74714 17019 11914 37174 2247 81631
output:
22720.00 22720.00 34634.00 36881.00 36881.00
result:
ok 5 numbers
Test #10:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
9 53824 47615 58784 76606 92054 48015 42579 30770 54296
output:
80111.50 112608.00 164441.50 172236.00 209738.50 203006.00 252271.50
result:
ok 7 numbers
Test #11:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
9 10603 3665 43403 4221 69692 67208 32781 81382 59752
output:
14268.00 7886.00 18489.00 75094.00 85697.00 118478.00 167079.00
result:
ok 7 numbers
Test #12:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
5 54088 54685 55012 38257 52701
output:
81892.50 92942.00 127371.50
result:
ok 3 numbers
Test #13:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
3 74261 65279 86090
output:
112815.00
result:
ok found '112815.000000000', expected '112815.000000000', error '0.000000000'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
10 1057 64780 59341 47108 3944 89690 51162 49144 74308 59172
output:
60398.00 60398.00 64342.00 64342.00 115504.00 115504.00 164648.00 189812.00
result:
ok 8 numbers
Test #15:
score: 0
Accepted
time: 0ms
memory: 3968kb
input:
9 96327 88943 40808 98568 19555 69239 30799 85495 66173
output:
113039.00 137135.00 149306.00 156690.00 180105.00 187489.00 246278.00
result:
ok 7 numbers
Test #16:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
6 76939 84159 37885 68138 35883 77265
output:
99491.50 114824.00 150707.00 150707.00
result:
ok 4 numbers
Test #17:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
500 34441 35461 60498 85091 10190 82529 83927 52970 84690 87216 3712 9248 68418 59463 77093 85250 55436 14678 94174 37020 73526 85366 41476 60645 30070 94224 7771 68536 18753 38292 58492 98917 42286 50980 37281 22827 71102 6371 77923 39992 47053 27007 91612 49595 48775 97510 381 67554 85863 59721 21...
output:
65200.00 94939.00 105129.00 105129.00 187658.00 189056.00 240628.00 273746.00 277458.00 277458.00 286706.00 345876.00 346169.00 422969.00 431419.00 446097.00 446097.00 483117.00 483117.00 556643.00 568483.00 598119.00 628189.00 628189.00 635960.00 635960.00 654713.00 654713.00 693005.00 713205.00 75...
result:
ok 498 numbers
Test #18:
score: 0
Accepted
time: 1ms
memory: 3968kb
input:
500 34107 16230 46328 55708 66636 97086 28938 6300 39719 68950 67687 10393 71103 89578 42467 96751 87630 1400 79654 7152 33899 43601 88685 57320 81838 34934 64035 3348 6930 39128 56614 26360 58906 42796 76830 61909 62124 16934 1705 30074 87558 59162 12827 54009 9340 91616 98532 4036 8482 45595 15872...
output:
48332.50 71938.00 106045.00 147071.00 158132.00 164432.00 182309.00 215728.00 251259.00 243775.00 261652.00 332755.00 351230.00 375222.00 444975.00 431504.00 449381.00 438656.00 456533.00 482257.00 500134.00 539577.00 557454.00 574511.00 592388.00 577859.00 584789.00 602666.00 634864.00 643347.00 66...
result:
ok 498 numbers
Test #19:
score: 0
Accepted
time: 2ms
memory: 4000kb
input:
5000 4392 13046 32542 71000 47088 92614 105 22181 53825 99447 30689 88294 94587 52557 4364 756 16473 84952 14742 67257 77573 83014 65399 79517 54789 24831 29756 67990 86637 16919 19974 94263 90920 79471 53814 50442 58365 66478 9480 18282 51457 50805 37926 65178 8160 71772 76504 87177 67017 72180 147...
output:
17438.00 36934.00 84022.00 84022.00 84127.00 84127.00 106308.00 137952.00 168641.00 168641.00 256935.00 263228.00 267592.00 267592.00 268348.00 284065.00 298807.00 298807.00 366064.00 376380.00 441779.00 441779.00 496568.00 496568.00 521399.00 526324.00 589389.00 606308.00 606308.00 626282.00 700571...
result:
ok 4998 numbers
Test #20:
score: 0
Accepted
time: 3ms
memory: 4068kb
input:
5000 11843 94463 91467 72365 4375 48380 25378 5010 96463 45148 55772 30529 90912 77940 64528 30825 90105 49568 56392 61787 4085 19286 86893 52458 91247 94357 98226 99426 6670 84772 41597 34036 66412 95670 44124 73933 2343 80802 84941 35478 92550 14586 60972 37059 31317 51289 76470 32287 63838 14333 ...
output:
98886.50 103310.00 107685.00 107685.00 133063.00 133063.00 138073.00 183221.00 183221.00 213750.00 213750.00 291690.00 291690.00 322515.00 322515.00 372083.00 372083.00 428475.00 432560.00 432560.00 451846.00 504304.00 504304.00 595551.00 598661.00 693777.00 698087.00 700447.00 742044.00 742044.00 7...
result:
ok 4998 numbers
Test #21:
score: 0
Accepted
time: 53ms
memory: 10960kb
input:
100000 49597 87877 550 83064 29344 35117 12280 17713 91817 68325 82530 48443 56783 22701 26141 18171 12049 23180 43843 47386 71369 54704 6490 61649 92367 48141 39564 35454 6315 78747 6689 30085 5370 57783 31399 75003 42252 3686 58255 11975 81728 58160 74351 31568 74822 17239 22555 53797 28347 82971 ...
output:
50147.00 50147.00 79491.00 79491.00 91771.00 91771.00 109484.00 177809.00 177809.00 226252.00 226252.00 248953.00 248953.00 267124.00 267124.00 279173.00 290304.00 323016.00 337690.00 392394.00 392394.00 398884.00 454043.00 491251.00 502184.00 530815.00 537130.00 537130.00 543819.00 543819.00 549189...
result:
ok 99998 numbers
Test #22:
score: 0
Accepted
time: 53ms
memory: 10968kb
input:
100000 69076 98538 52577 93411 24964 56209 2894 61316 75328 83770 84467 92372 75711 98861 23837 65286 28174 57409 49498 53832 35915 80628 69176 47434 28269 6830 35507 78899 79052 21986 58876 60045 8984 84624 17042 95783 52208 82055 85518 51075 42713 29045 74210 1718 24904 96571 70856 79776 52763 916...
output:
110095.50 121653.00 146617.00 146617.00 149511.00 149511.00 210827.00 224839.00 294597.00 309306.00 385017.00 385017.00 408854.00 408854.00 437028.00 437028.00 486526.00 486526.00 522441.00 522441.00 591617.00 591617.00 619886.00 619886.00 626716.00 655393.00 705615.00 727601.00 727601.00 786477.00 ...
result:
ok 99998 numbers
Test #23:
score: 0
Accepted
time: 53ms
memory: 10880kb
input:
100000 88293 52731 91581 88057 5853 13426 78411 20535 91489 46614 74465 73989 5900 17533 12752 58998 17852 39913 33471 84401 2517 83998 85169 92750 24072 57726 51014 72967 64387 74402 19121 61417 74089 8447 11562 38556 73855 66143 2219 85593 89299 75912 94365 37510 32689 70831 90000 55442 72405 5193...
output:
116302.50 140788.00 146641.00 154214.00 199153.00 174749.00 219688.00 221363.00 266302.00 295352.00 301252.00 312885.00 314004.00 358943.00 331856.00 371769.00 365327.00 410266.00 367844.00 412783.00 453013.00 497952.00 477085.00 522024.00 528099.00 573038.00 592486.00 637425.00 611607.00 656546.00 ...
result:
ok 99998 numbers
Test #24:
score: 0
Accepted
time: 53ms
memory: 10796kb
input:
100000 48458 91538 29642 39739 50299 75547 97315 30105 13597 50916 45459 65673 23923 90198 87681 30050 87635 20802 11716 21144 55900 42493 67536 19285 91803 27104 26924 69569 39822 5759 85188 39011 2058 5790 96108 10057 37008 49603 19296 8172 10215 61827 83857 53086 35116 79880 9946 91463 49183 6070...
output:
78100.00 78100.00 117839.00 128399.00 193386.00 223491.00 223491.00 237088.00 274407.00 282547.00 306470.00 306470.00 394151.00 394151.00 424201.00 445003.00 445003.00 456719.00 466147.00 508640.00 508640.00 527925.00 527925.00 555029.00 555029.00 581953.00 621775.00 621775.00 627534.00 666545.00 66...
result:
ok 99998 numbers
Test #25:
score: 0
Accepted
time: 54ms
memory: 10968kb
input:
100000 48479 91558 35614 20969 73258 22280 78439 82101 67819 96525 25382 5142 84891 72244 11086 13299 92023 53718 1928 9834 4374 41406 77295 545 93663 57475 84385 65962 38809 64615 55162 68971 56647 48731 67492 35334 47990 93193 7003 54487 31417 29839 43817 29629 66298 23770 31361 63785 6643 22754 8...
output:
84093.00 84093.00 105062.00 127342.00 127342.00 205781.00 209443.00 273600.00 298982.00 298982.00 304124.00 376368.00 376368.00 387454.00 389667.00 443385.00 443385.00 445313.00 449687.00 449687.00 491093.00 491638.00 491638.00 549113.00 549113.00 615075.00 615075.00 653884.00 679690.00 709046.00 74...
result:
ok 99998 numbers
Test #26:
score: 0
Accepted
time: 51ms
memory: 10968kb
input:
100000 62672 92826 92952 14630 67622 38276 80223 80358 98074 68965 63092 37584 91208 77315 68441 47347 1836 60125 27392 12039 81792 44232 19746 50815 37050 28328 55191 76603 16441 17379 64585 14972 40291 67166 92010 29030 91538 39288 14294 32348 24408 38710 16626 18327 37630 74127 12174 76791 3069 2...
output:
124225.00 107456.00 165351.00 145732.00 208404.00 226090.00 288762.00 295055.00 357727.00 332639.00 395311.00 409954.00 472626.00 457301.00 459137.00 517426.00 486529.00 498568.00 561240.00 542800.00 562546.00 593615.00 599596.00 621943.00 654787.00 698546.00 671228.00 688607.00 735813.00 703579.00 ...
result:
ok 99998 numbers
Test #27:
score: 0
Accepted
time: 54ms
memory: 10968kb
input:
100000 92379 9768 42166 97463 78246 27233 70117 75069 45670 3116 28743 56779 95893 17402 41576 81225 34039 48586 23590 99310 94761 54870 89172 15021 8893 66862 69743 50988 16846 45745 40170 50180 25226 70203 19251 47719 92637 12714 77572 77340 57299 18717 62575 75592 52914 87664 54183 47964 7322 894...
output:
51934.00 107231.00 130180.00 134464.00 200297.00 209533.00 245967.00 212649.00 241392.00 269428.00 337285.00 286830.00 328406.00 368055.00 362445.00 411031.00 386035.00 478414.00 480796.00 535666.00 569968.00 550687.00 559580.00 617549.00 629323.00 668537.00 646169.00 691914.00 686339.00 736519.00 7...
result:
ok 99998 numbers
Test #28:
score: 0
Accepted
time: 55ms
memory: 10880kb
input:
100000 85631 93590 91870 8486 44635 95782 92340 28131 26437 67501 28732 89185 9608 83125 48375 21850 36571 39816 23583 47974 60326 76746 46362 75171 84559 92241 27741 87037 69784 51532 55827 68389 32894 59657 49386 59870 43720 18824 55522 73111 73100 18591 23470 34493 81661 11331 44782 91837 90188 4...
output:
135545.50 102076.00 146711.00 197858.00 239051.00 225989.00 252426.00 293490.00 281158.00 365069.00 290766.00 373891.00 339141.00 360991.00 375712.00 400807.00 399295.00 447269.00 459621.00 524015.00 505983.00 581154.00 590542.00 673395.00 618283.00 702194.00 688067.00 739599.00 743894.00 807988.00 ...
result:
ok 99998 numbers
Test #29:
score: 0
Accepted
time: 54ms
memory: 10880kb
input:
100000 52990 32595 79938 37314 86118 52304 3313 88122 91071 75682 48495 90008 79281 90178 34035 71174 12449 12532 99520 44900 93929 23757 56961 33047 70240 8630 4734 76444 5035 35121 81250 68153 82807 19663 51914 76013 24982 46086 40518 82026 39166 20080 98387 78288 97813 72090 73620 2890 97132 4775...
output:
82761.50 69909.00 122899.00 122213.00 125526.00 178516.00 216597.00 269587.00 265092.00 318082.00 344373.00 397363.00 378408.00 431398.00 390857.00 403389.00 456379.00 448289.00 501279.00 472046.00 525036.00 505093.00 558083.00 513723.00 518457.00 571447.00 523492.00 558613.00 604742.00 626766.00 67...
result:
ok 99998 numbers
Test #30:
score: 0
Accepted
time: 53ms
memory: 10880kb
input:
100000 32851 30350 81405 4387 46274 40628 95096 6102 78649 26618 91105 3019 7884 12932 60622 49866 19469 56274 55552 68262 34513 14225 48137 65830 53028 51761 47879 24022 56978 38151 10133 3046 38397 78653 66711 95532 30892 40032 18399 71196 93592 57002 49068 47278 25901 19515 37055 2078 92668 11894...
output:
63201.00 34737.00 67588.00 75365.00 108216.00 81467.00 114318.00 108085.00 140936.00 111104.00 118988.00 124036.00 156887.00 173902.00 193371.00 226222.00 248923.00 281774.00 283436.00 297661.00 330512.00 363491.00 384601.00 415252.00 432480.00 439274.00 472125.00 477425.00 487558.00 480471.00 51332...
result:
ok 99998 numbers
Test #31:
score: 0
Accepted
time: 53ms
memory: 10964kb
input:
100000 98479 65870 53942 59631 12398 92261 76059 93056 15025 99894 92897 45308 9976 71830 12868 26993 75465 14997 24717 20892 12315 1982 41355 54432 38953 86681 58436 16972 66606 50418 60868 22258 32790 47219 71417 41175 72530 37043 8655 3458 54408 76945 50616 44528 89452 6093 95075 90769 57648 5696...
output:
109145.50 125501.00 132210.00 164819.00 208269.00 240878.00 223294.00 255903.00 316191.00 348800.00 326167.00 358776.00 339035.00 366028.00 398637.00 381025.00 405742.00 401917.00 414232.00 403899.00 436508.00 458331.00 484207.00 516816.00 542643.00 559615.00 592224.00 610033.00 642642.00 632291.00 ...
result:
ok 99998 numbers
Test #32:
score: 0
Accepted
time: 55ms
memory: 10960kb
input:
100000 42536 60630 43230 30656 83005 18671 52459 94819 69571 94552 81940 94348 94761 89309 51881 86131 34906 4393 59962 37897 71791 11736 27337 55218 39456 22604 14853 39349 9233 66383 82623 82254 77090 34392 2488 86952 92026 87278 87505 41556 56442 96306 42319 82221 10319 50942 71976 46421 99940 53...
output:
73198.00 85766.00 116422.00 109957.00 135093.00 187552.00 229912.00 257123.00 313927.00 339063.00 408688.00 433824.00 460569.00 485705.00 495475.00 499868.00 525004.00 537765.00 562901.00 549501.00 574637.00 601974.00 616294.00 627323.00 631147.00 656283.00 640380.00 665516.00 723003.00 748139.00 80...
result:
ok 99998 numbers
Test #33:
score: 0
Accepted
time: 51ms
memory: 10964kb
input:
100000 21577 9916 88568 53944 64284 14670 67698 76818 4906 47738 24994 53311 93636 57721 26629 33185 62141 92819 63968 915 46729 96382 95353 69007 81326 36725 51700 84701 7048 4778 38562 50525 61207 23296 25283 70561 57883 40341 41794 99217 39428 52950 50231 91634 33560 62292 46935 69195 7106 6603 9...
output:
31493.00 63860.00 85437.00 78530.00 100107.00 155348.00 151134.00 172711.00 176128.00 197705.00 251016.00 287160.00 296393.00 317970.00 341922.00 380111.00 422502.00 414079.00 435656.00 482385.00 532038.00 577738.00 601045.00 616193.00 637770.00 689470.00 674941.00 679719.00 701296.00 730244.00 7518...
result:
ok 99998 numbers
Test #34:
score: 0
Accepted
time: 53ms
memory: 10960kb
input:
100000 32975 7373 31643 45628 40968 26664 30916 15761 43290 19388 34563 47339 63687 50482 58834 80012 51497 24523 67966 71421 89187 68396 96602 78320 5199 99081 43973 1206 86894 83279 94753 89308 69063 61044 24995 72457 10753 94469 35145 61606 69548 98064 11764 40192 11548 31959 20189 59732 71535 89...
output:
35995.50 53001.00 79293.50 79665.00 108083.50 95426.00 128401.00 114814.00 147789.00 162153.00 195128.00 212635.00 245610.00 292647.00 322966.00 317170.00 350145.00 388591.00 421566.00 456987.00 489962.00 535307.00 540506.00 573481.00 584479.00 585685.00 618660.00 668964.00 701939.00 758272.00 79124...
result:
ok 99998 numbers
Test #35:
score: 0
Accepted
time: 50ms
memory: 10880kb
input:
100000 50420 39250 44751 16335 42475 53777 17238 8125 15116 86600 82960 6281 25651 2885 58865 10772 28110 49061 87139 4978 55533 89256 66736 95799 71777 44123 27344 54590 75429 54765 75621 21383 92652 72421 18314 19056 81756 76805 48975 17032 77768 76817 40385 98155 53167 55480 47587 10780 47145 895...
output:
67210.50 55585.00 96615.50 109362.00 115298.00 117487.00 130414.00 170000.00 213374.00 210368.00 236019.00 213253.00 258775.00 224025.00 252135.00 273086.00 318608.00 278064.00 323586.00 367320.00 400333.00 445855.00 472110.00 507242.00 499454.00 544976.00 574883.00 608809.00 650504.00 630192.00 675...
result:
ok 99998 numbers
Test #36:
score: 0
Accepted
time: 54ms
memory: 10880kb
input:
100000 15321 45389 35881 53829 3790 83415 32980 17414 58552 91965 48131 67975 60222 10043 47700 2075 72202 44990 81161 57380 92658 70542 56748 46993 35121 57405 50695 82627 39610 97550 62636 26023 53706 80258 32733 52318 3204 66166 29720 87168 92049 42624 32824 78552 66896 87734 15842 40082 37706 48...
output:
48295.50 51202.00 54992.00 54992.00 87972.00 87972.00 105386.00 146524.00 194655.00 194655.00 254877.00 254877.00 264920.00 266995.00 266995.00 311985.00 311985.00 369365.00 369365.00 439907.00 439907.00 486900.00 486900.00 522021.00 544305.00 572716.00 612326.00 612326.00 674962.00 674962.00 700985...
result:
ok 99998 numbers
Test #37:
score: 0
Accepted
time: 54ms
memory: 10964kb
input:
100000 40810 7137 67899 74331 49371 58974 32485 50035 36344 41673 50715 39417 68919 97444 68727 37657 15590 57530 42495 4060 20326 68290 40923 26195 25646 111 2007 11202 84352 50018 51442 85012 11914 46119 71349 76508 16642 11899 18903 24533 46149 6652 61417 2677 33747 26180 45896 24421 20883 86434 ...
output:
47947.00 81468.00 119774.00 140442.00 156892.00 190477.00 193236.00 226909.00 243951.00 271567.00 307999.00 346543.00 381597.00 406668.00 397187.00 430860.00 439682.00 443742.00 460008.00 493681.00 500931.00 527126.00 526577.00 526688.00 528584.00 537890.00 571563.00 587908.00 621581.00 672920.00 65...
result:
ok 99998 numbers
Test #38:
score: 0
Accepted
time: 49ms
memory: 10880kb
input:
100000 88229 81477 7144 49203 32608 20380 58823 57375 96580 95093 51727 39858 85146 32859 22987 42064 12578 44390 34392 9718 50371 58118 45758 15728 11594 75834 13321 21796 53786 8165 30567 66164 41680 22773 89973 83806 19629 5283 62945 30748 39929 18119 69860 35557 38940 46611 11252 4199 48887 6348...
output:
88425.00 95373.00 121229.00 127981.00 148361.00 186804.00 205736.00 283384.00 300829.00 333935.00 340687.00 366794.00 373546.00 396533.00 402359.00 409111.00 436751.00 443503.00 453221.00 493874.00 511339.00 520315.00 527067.00 538661.00 545230.00 551982.00 573778.00 575191.00 581943.00 612510.00 64...
result:
ok 99998 numbers
Test #39:
score: 0
Accepted
time: 52ms
memory: 10968kb
input:
100000 23582 33298 67847 45667 31969 90378 44667 19683 12508 28272 39803 78197 16391 94588 33021 68241 95206 81063 89257 81134 30897 25900 53244 50482 81502 30032 79084 42896 43578 15431 7564 41792 37826 58137 54007 58382 12082 80641 46643 67508 76201 69286 35430 3395 59705 54803 13240 74263 81038 9...
output:
56880.00 78965.00 101181.50 123398.00 155601.00 168065.00 168109.00 180573.00 207912.00 220376.00 224303.00 236767.00 257324.00 269788.00 338029.00 364994.00 419092.00 454251.00 472684.00 485148.00 511048.00 538392.00 561530.00 579098.00 591562.00 621994.00 634458.00 637425.00 644989.00 657453.00 68...
result:
ok 99998 numbers
Test #40:
score: 0
Accepted
time: 55ms
memory: 10964kb
input:
100000 78837 49633 47367 83069 73420 5416 2329 51655 40140 43806 74050 47549 84575 43840 60796 35040 47832 28500 63954 77565 7386 10459 78148 63519 37495 14219 61995 17178 24875 29751 67334 67968 13907 71115 48791 54801 76621 57655 68974 36490 50409 97972 81245 70249 63797 40309 83905 28291 94179 14...
output:
87918.50 126204.00 166163.00 138118.00 140447.00 189773.00 180587.00 224393.00 254637.00 271942.00 333448.00 315782.00 376578.00 350822.00 398654.00 379322.00 440828.00 456887.00 450662.00 461121.00 522627.00 524640.00 562135.00 538859.00 600365.00 556037.00 580912.00 585788.00 647294.00 653756.00 6...
result:
ok 99998 numbers
Test #41:
score: 0
Accepted
time: 53ms
memory: 10964kb
input:
100000 62531 46506 67804 31079 233 16539 25361 15097 71747 20875 95464 13005 2919 81615 6841 27981 19701 70869 40436 56448 78531 19982 45661 50204 30801 81602 34408 77265 7894 6356 86670 52103 98318 3443 37009 56463 70879 83340 88966 65000 88195 81469 37057 47597 75890 75008 33274 12778 59097 55131 ...
output:
88420.50 77585.00 77818.00 94124.00 103179.00 109221.00 162204.00 130096.00 183079.00 143101.00 146020.00 199003.00 152861.00 180842.00 172562.00 225545.00 212998.00 265981.00 291529.00 289428.00 335089.00 339632.00 365890.00 418873.00 400298.00 453281.00 408192.00 414548.00 467531.00 466651.00 5196...
result:
ok 99998 numbers
Test #42:
score: 0
Accepted
time: 56ms
memory: 10960kb
input:
100000 37372 30269 17854 31890 80135 99968 77349 71922 7623 88980 71865 61603 90801 88711 54278 10545 31847 80243 90921 38688 57075 42264 70894 90582 90354 63097 93531 26334 98225 21071 94725 58639 66243 17638 50759 25313 17667 30467 52652 86679 80400 71490 93145 80798 75213 14410 32468 25261 16432 ...
output:
42747.50 55226.00 87116.00 135361.00 187084.00 212710.00 213230.00 220333.00 285095.00 292198.00 353801.00 382999.00 430174.00 437277.00 447822.00 469124.00 528065.00 559650.00 566753.00 601914.00 609017.00 679911.00 699599.00 755593.00 762696.00 781927.00 789030.00 802998.00 810101.00 861637.00 868...
result:
ok 99998 numbers
Test #43:
score: 0
Accepted
time: 53ms
memory: 10880kb
input:
100000 83445 33169 61240 61810 56366 42162 67441 52047 9889 76254 73766 26861 35294 51222 75047 33535 95463 29912 58740 85122 9691 97595 21278 252 58728 44148 62413 71486 41718 10910 84178 69109 23312 20787 54125 90853 74313 18222 51781 70983 71320 31158 91602 69087 76355 4243 88406 54116 6798 75555...
output:
88927.00 94979.00 148015.00 137141.00 202816.50 189188.00 199077.00 265442.00 272843.00 292303.00 308137.00 343525.00 383184.00 377060.00 460505.00 406972.00 465712.00 492094.00 475403.00 558848.00 496681.00 496933.00 555409.00 541081.00 603494.00 612567.00 645212.00 623477.00 706922.00 692586.00 71...
result:
ok 99998 numbers
Test #44:
score: 0
Accepted
time: 55ms
memory: 10964kb
input:
100000 2789 2716 23508 97250 24215 85271 90073 86814 23374 87157 3384 16521 69113 30852 90622 93193 73202 76186 97823 98291 30515 91217 91917 78081 45569 74781 6920 89923 83374 79325 45775 11657 55434 45039 12052 32093 97924 99400 35345 43773 6268 46000 81403 34902 20753 43483 22196 47255 23619 1611...
output:
5505.00 26297.00 50439.00 50512.00 135783.00 140585.00 163886.00 163959.00 167270.00 167343.00 183864.00 214643.00 214716.00 305338.00 307909.00 378540.00 384095.00 476363.00 482386.00 506878.00 573603.00 598795.00 644291.00 644364.00 651211.00 651284.00 734585.00 734658.00 780360.00 780433.00 79209...
result:
ok 99998 numbers
Test #45:
score: 0
Accepted
time: 51ms
memory: 10880kb
input:
100000 44645 69681 77735 73960 15649 20265 3305 24619 98378 98790 31301 22596 51115 58493 89364 41313 76938 89895 24405 24437 93494 20980 9024 40417 29666 52176 43058 38777 98815 39787 79005 30597 56704 88770 49123 30994 76236 25377 42138 80315 14449 46909 22413 7850 9179 63997 86684 24741 34480 412...
output:
96030.50 122380.00 138029.00 138029.00 141334.00 141334.00 165953.00 239712.00 264743.00 271013.00 287339.00 322128.00 345832.00 387145.00 387145.00 464083.00 477040.00 488488.00 501477.00 522457.00 522457.00 531481.00 561147.00 561147.00 604205.00 604205.00 642982.00 682769.00 682769.00 713366.00 7...
result:
ok 99998 numbers
Test #46:
score: 0
Accepted
time: 58ms
memory: 10880kb
input:
100000 56165 87712 25717 19500 89236 73208 55788 23198 1448 98931 73663 29709 75443 8635 87592 31279 34486 35119 26431 19499 77418 74561 43832 41079 63035 62590 23182 7519 75519 39364 32853 95506 27394 10764 64386 98748 27938 26840 94963 54288 79367 75066 83380 30482 92401 42225 87630 34557 7973 470...
output:
81882.00 81882.00 101382.00 171118.00 174590.00 197788.00 197788.00 199236.00 272899.00 272899.00 302608.00 311243.00 311243.00 342522.00 342522.00 377008.00 377641.00 397140.00 397140.00 471701.00 471701.00 512780.00 512780.00 575370.00 575370.00 582889.00 582889.00 622253.00 622253.00 655106.00 68...
result:
ok 99998 numbers
Test #47:
score: 0
Accepted
time: 56ms
memory: 10964kb
input:
100000 26885 25426 70159 38119 56315 85447 96875 91771 53743 52507 16579 32130 64783 49256 28365 66784 37209 84490 46777 47066 93494 90025 22341 19174 94919 25300 23413 9904 83672 95552 42408 19238 33175 54907 94543 27816 46858 50460 90232 42805 64282 79111 29144 84190 18219 94947 76134 64811 85553 ...
output:
52311.00 63545.00 90430.00 146745.00 175877.00 240763.00 267648.00 293270.00 287057.00 313942.00 346072.00 368443.00 380205.00 407090.00 417414.00 444299.00 464191.00 491076.00 538142.00 584570.00 580026.00 599200.00 626085.00 624500.00 647913.00 634404.00 661289.00 729956.00 756841.00 749194.00 776...
result:
ok 99998 numbers
Test #48:
score: 0
Accepted
time: 53ms
memory: 10968kb
input:
100000 65754 37080 84713 19025 31452 8754 12180 70456 74453 43147 24377 78054 64029 5098 83200 88650 51277 29567 87619 99670 40237 18698 48968 1636 53634 92364 93439 87598 71083 39438 29472 37796 53937 25783 93795 49513 15898 50181 44979 46726 18682 95472 45186 36636 57017 72981 49651 88240 2346 297...
output:
93773.50 56105.00 87557.00 64859.00 77039.00 135315.00 151492.00 178462.00 175869.00 241623.00 239898.00 244996.00 310750.00 333646.00 374375.00 363213.00 428967.00 462883.00 491069.00 481581.00 530549.00 483217.00 536851.00 575581.00 630290.00 663179.00 701373.00 702617.00 730845.00 740413.00 78478...
result:
ok 99998 numbers
Test #49:
score: 0
Accepted
time: 53ms
memory: 10968kb
input:
100000 21931 12815 67345 57984 68741 30023 40874 52920 84747 80688 58924 32238 12851 45318 28191 35810 67430 44036 51814 22311 99678 95223 16006 2634 35570 7424 53108 18095 60924 25509 80946 12252 41854 98397 54217 60140 11119 5675 19644 1612 54805 98499 15149 17667 66679 51668 91005 76279 56229 547...
output:
34746.00 70799.00 92730.00 100822.00 122753.00 153742.00 175673.00 234430.00 256361.00 266668.00 279519.00 301450.00 307710.00 329641.00 365451.00 387556.00 409487.00 409867.00 431798.00 505090.00 521096.00 507724.00 529655.00 515148.00 537079.00 533243.00 555174.00 558752.00 580683.00 571004.00 592...
result:
ok 99998 numbers
Test #50:
score: 0
Accepted
time: 53ms
memory: 10964kb
input:
100000 97429 68142 8258 72786 3896 73576 11540 1148 92694 54380 99226 85518 26581 79792 14992 39770 80242 59181 93673 56257 56499 82865 20947 2755 18074 62304 62076 87044 38678 34332 64777 50740 93572 70584 74136 50448 84299 12630 90041 39834 63522 22472 48420 53376 49435 52002 69018 35482 84994 792...
output:
76400.00 105687.00 80296.00 109583.00 91836.00 92984.00 122271.00 147364.00 176651.00 232882.00 259463.00 288750.00 274455.00 303742.00 343512.00 373406.00 402693.00 429663.00 458950.00 512528.00 507109.00 509864.00 525183.00 554470.00 587259.00 616546.00 625937.00 655224.00 689556.00 711009.00 7402...
result:
ok 99998 numbers
Test #51:
score: 0
Accepted
time: 52ms
memory: 10872kb
input:
100000 38063 17584 73288 39554 53584 12935 63225 62875 74446 63167 62751 3421 82368 95206 54693 2845 36363 45356 39428 78418 33999 19351 12889 66305 68178 50661 54595 71587 46268 66903 60589 76222 26615 30565 92300 92536 26588 70709 80794 18641 44692 99490 57179 61839 28216 58749 69822 75787 2856 35...
output:
55647.00 57138.00 95201.00 70073.00 108136.00 132948.00 171011.00 196115.00 234178.00 199536.00 237599.00 294742.00 332805.00 297587.00 333950.00 342943.00 373378.00 411441.00 407377.00 426728.00 420266.00 458329.00 488444.00 526507.00 543039.00 581102.00 589307.00 627370.00 649896.00 687959.00 6765...
result:
ok 99998 numbers
Test #52:
score: 0
Accepted
time: 54ms
memory: 10960kb
input:
100000 23059 10419 11028 14923 6844 2722 47509 24763 81030 87668 32251 89209 64005 84303 80369 97071 20096 22058 61668 92195 61127 50974 62955 70182 44802 33758 77032 26947 44746 14843 18991 56003 4731 39280 89268 82111 11359 68934 41047 39216 40591 86374 87441 7731 26197 81689 68490 51942 5010 6765...
output:
21447.00 25342.00 28291.00 28064.00 43653.00 52827.00 68416.00 140495.00 156084.00 181697.00 230113.00 245702.00 310482.00 326071.00 330578.00 346167.00 368225.00 407835.00 453373.00 468962.00 511394.00 531917.00 561130.00 576719.00 610477.00 621835.00 637424.00 636678.00 652267.00 671258.00 660400....
result:
ok 99998 numbers
Test #53:
score: 0
Accepted
time: 53ms
memory: 10920kb
input:
100000 50290 44124 24658 5708 26771 88596 49992 49551 12539 75773 27303 56772 37369 26302 50409 83554 87303 2650 84276 14696 99033 50467 3589 41945 12688 91307 80478 27269 41752 20939 14547 21902 83889 5473 46976 73677 23343 36437 611 65686 63999 21210 38958 33384 16513 21805 78427 30483 49396 97964...
output:
59536.00 49832.00 75775.50 101719.00 126595.00 151711.00 139134.00 164250.00 166437.00 191553.00 203806.00 228922.00 254215.00 279331.00 338778.00 316312.00 341428.00 331008.00 356124.00 381475.00 385064.00 410180.00 397752.00 422868.00 478230.00 503346.00 519982.00 526438.00 534529.00 548340.00 573...
result:
ok 99998 numbers
Test #54:
score: 0
Accepted
time: 54ms
memory: 10964kb
input:
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000...
output:
150000.00 200000.00 250000.00 300000.00 350000.00 400000.00 450000.00 500000.00 550000.00 600000.00 650000.00 700000.00 750000.00 800000.00 850000.00 900000.00 950000.00 1000000.00 1050000.00 1100000.00 1150000.00 1200000.00 1250000.00 1300000.00 1350000.00 1400000.00 1450000.00 1500000.00 1550000.0...
result:
ok 99998 numbers
Test #55:
score: 0
Accepted
time: 29ms
memory: 10880kb
input:
100000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 ...
result:
ok 99998 numbers
Test #56:
score: 0
Accepted
time: 52ms
memory: 10960kb
input:
100000 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1...
output:
3.00 4.00 7.00 9.00 13.00 16.00 21.00 25.00 31.00 36.00 43.00 49.00 57.00 64.00 73.00 81.00 91.00 100.00 111.00 121.00 133.00 144.00 157.00 169.00 183.00 196.00 211.00 225.00 241.00 256.00 273.00 289.00 307.00 324.00 343.00 361.00 381.00 400.00 421.00 441.00 463.00 484.00 507.00 529.00 553.00 576.00...
result:
ok 99998 numbers