QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#141692 | #2137. Fair Robbery | emailam# | AC ✓ | 292ms | 13452kb | C++20 | 716b | 2023-08-17 21:19:21 | 2023-08-17 21:19:21 |
Judging History
answer
# include <bits/stdc++.h>
using namespace std ;
typedef long double ld ;
int main(){
int n ; cin >> n ;
vector<int> v(n) ;
multiset<int> pre , suf ;
for (int i = 0; i < n; ++i) {
cin >> v[i] ;
suf.insert(v[i]) ;
}
for (int i = 0; i < n; ++i) {
ld ans = -1 ;
if ( pre.empty() ){
ans = 1 ;
}else{
int mx1=*pre.rbegin(),mn1=*pre.begin();
int mx2=*suf.rbegin(),mn2=*suf.begin();
ans=1-min(1.0,min(1.0*mx1/mx2,1.0*mn1/mn2));
}
pre.insert(v[i]) ;
suf.erase(suf.find(v[i])) ;
cout << fixed << setprecision(10) << ans << ' ' ;
}
return 0 ;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3752kb
input:
3 1 4 2
output:
1.0000000000 0.7500000000 0.5000000000
result:
ok 3 numbers
Test #2:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
3 3 2 1
output:
1.0000000000 0.0000000000 0.0000000000
result:
ok 3 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
1 1
output:
1.0000000000
result:
ok found '1.0000000000', expected '1.0000000000', error '0.0000000000'
Test #4:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
1 794097177
output:
1.0000000000
result:
ok found '1.0000000000', expected '1.0000000000', error '0.0000000000'
Test #5:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
2 2 1
output:
1.0000000000 0.0000000000
result:
ok 2 numbers
Test #6:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
2 536903586 114564870
output:
1.0000000000 0.0000000000
result:
ok 2 numbers
Test #7:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
5 2 1 1 1 1
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000
result:
ok 5 numbers
Test #8:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
5 138607311 299560223 595742672 211358695 984177010
output:
1.0000000000 0.8591642463 0.6956236328 0.3946793453 0.8591642463
result:
ok 5 numbers
Test #9:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
5 32761606 111310928 880418590 968944659 990313420
output:
1.0000000000 0.9669179420 0.9627886026 0.9661883621 0.9669179420
result:
ok 5 numbers
Test #10:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
5 289126678 58502014 606310451 841973109 948293913
output:
1.0000000000 0.6951085797 0.9035114537 0.9305179543 0.9383081414
result:
ok 5 numbers
Test #11:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
5 179859295 733164127 941618142 867602587 782418975
output:
1.0000000000 0.8089891359 0.7701240630 0.7701240630 0.7701240630
result:
ok 5 numbers
Test #12:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
5 326944681 56735524 753408139 598264769 414668863
output:
1.0000000000 0.5660457273 0.8631787215 0.8631787215 0.8631787215
result:
ok 5 numbers
Test #13:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
5 769118438 297784991 181732792 890860586 920725234
output:
1.0000000000 0.1646601944 0.1646601944 0.7960031066 0.8026199508
result:
ok 5 numbers
Test #14:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
5 659729980 50248932 475868415 794747916 870209839
output:
1.0000000000 0.2418725341 0.8944058265 0.9367737480 0.9422565343
result:
ok 5 numbers
Test #15:
score: 0
Accepted
time: 1ms
memory: 3756kb
input:
5 958543238 525410097 358984543 623797777 554591797
output:
1.0000000000 0.0000000000 0.0000000000 0.3527049175 0.3527049175
result:
ok 5 numbers
Test #16:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
5 902379325 388716858 537067967 697547983 551039575
output:
1.0000000000 0.0000000000 0.2762240873 0.2945754250 0.2945754250
result:
ok 5 numbers
Test #17:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
5 500000001 500000001 500000005 500000002 500000002
output:
1.0000000000 0.0000000080 0.0000000080 0.0000000020 0.0000000020
result:
ok 5 numbers
Test #18:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
5 500000002 500000000 500000004 500000003 500000002
output:
1.0000000000 0.0000000040 0.0000000040 0.0000000040 0.0000000040
result:
ok 5 numbers
Test #19:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
5 500000002 500000002 500000001 500000004 500000005
output:
1.0000000000 0.0000000060 0.0000000060 0.0000000060 0.0000000080
result:
ok 5 numbers
Test #20:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
5 500000004 500000001 500000003 500000005 500000005
output:
1.0000000000 0.0000000020 0.0000000040 0.0000000080 0.0000000080
result:
ok 5 numbers
Test #21:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
200 2 1 1 2 1 1 2 2 1 1 1 1 1 1 2 1 1 2 1 2 2 2 1 1 2 2 1 1 2 1 1 1 2 2 1 2 2 1 2 1 2 1 2 2 1 1 1 2 2 1 2 2 1 1 2 1 2 1 2 2 1 2 1 1 1 1 1 1 2 1 2 1 1 1 1 2 2 2 1 2 2 2 1 1 2 1 2 1 2 1 1 2 1 1 2 1 1 2 1 1 1 1 1 1 2 1 1 2 1 1 1 2 1 1 2 1 2 2 1 1 2 2 2 1 1 1 2 1 2 1 2 2 1 1 1 1 1 1 1 1 2 1 2 2 1 1 2 2 ...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200 numbers
Test #22:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
200 918397689 530840343 314036445 149748847 921879265 301699741 429866560 396110478 596334234 705461839 359814634 573854795 928376439 611853800 309930427 886667067 657869732 192168208 189195333 344875644 727933881 366659972 933342606 869819910 509187589 165210427 427455105 987821410 680573898 158262...
output:
1.0000000000 0.0796490124 0.0796490124 0.0796490124 0.0796490124 0.0761600316 0.0761600316 0.0761600316 0.0761600316 0.0761600316 0.0761600316 0.0761600316 0.0761600316 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0.0696490390 0...
result:
ok 200 numbers
Test #23:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
200 1314787 16607060 16684903 16723027 23181526 25101579 29785507 32895191 36897386 53359562 62991519 63372260 63554564 72606330 79491758 90444701 99900503 101480260 111911980 116510410 116938609 122982255 125199608 131033831 140942404 148346425 154495253 154826794 155671041 159545601 163204054 1670...
output:
1.0000000000 0.9986796169 0.9833222562 0.9832440819 0.9832057956 0.9767198077 0.9747915824 0.9700877185 0.9669647989 0.9753598615 0.9791275553 0.9792529571 0.9793124692 0.9818915651 0.9834600840 0.9854630842 0.9868390352 0.9870439138 0.9882515974 0.9887152830 0.9887566048 0.9893091324 0.9894984735 0...
result:
ok 200 numbers
Test #24:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
200 475506348 469783820 457332588 450985347 450732337 440808770 437914869 436504336 434868830 433151022 432034139 431952999 427113421 408742430 406717496 406454684 397490211 397016012 394376439 390810079 384791131 384770949 378947018 378234974 377479594 357586262 348836419 348018866 334238033 327173...
output:
1.0000000000 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0.5156997651 0...
result:
ok 200 numbers
Test #25:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
200 1481538 5425610 13252722 14220577 14253212 15326733 23167318 27603743 35529454 42443512 43614426 44466228 48481325 58369615 62024917 67480107 70915451 71777192 72170727 87991969 89422814 91153199 92498844 93570260 100785782 102980792 109454309 110997525 115079744 116555228 120013506 121725709 12...
output:
1.0000000000 0.9985153206 0.9945628857 0.9867191774 0.9857492702 0.9857165660 0.9846407687 0.9767835588 0.9723377270 0.9650938876 0.9660310100 0.9666817253 0.9694410580 0.9746179926 0.9761138254 0.9780448185 0.9791083892 0.9793592093 0.9794717601 0.9831628043 0.9834322145 0.9837467251 0.9839831728 0...
result:
ok 200 numbers
Test #26:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
200 504236585 499998839 499251690 494842079 493008305 486855363 480277129 479426924 476985583 466426829 452991766 448996454 436327097 424130207 417933347 414612736 410266716 404907005 402008690 401325520 400819547 400458136 362964122 358159167 357274812 357240926 352769816 350404061 337112751 335600...
output:
1.0000000000 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0.4938183167 0...
result:
ok 200 numbers
Test #27:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
200 477582252 6397993 478600943 15106348 481223350 26978901 498241794 39036855 508199831 48041396 512551383 51644434 515717838 65247025 520578091 77706448 529965012 87511899 546172535 92366439 554443730 107088321 566862944 115136700 573068690 130483348 581707724 134019665 595942943 134680540 6111016...
output:
1.0000000000 0.5213108238 0.5213108238 0.5202897717 0.5202897717 0.5176612866 0.5176612866 0.5006033978 0.5006033978 0.4906222804 0.4906222804 0.4862606425 0.4862606425 0.4830868484 0.4830868484 0.4782153305 0.4782153305 0.4688066528 0.4688066528 0.4525615645 0.4525615645 0.4442711988 0.4442711988 0...
result:
ok 200 numbers
Test #28:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
200 495781480 492420735 506722901 470931712 510615712 460852016 512493303 458966092 523268668 457178707 528306183 447832575 539132328 440957682 548523753 438322126 565481381 431160152 570509513 421277401 573340110 401789816 596145201 388570881 601932266 382938623 609854160 374874271 615126781 370801...
output:
1.0000000000 0.4998249599 0.4998249599 0.4887865773 0.4887865773 0.4848592686 0.4848592686 0.4829650386 0.4829650386 0.4720941836 0.4720941836 0.4670120267 0.4670120267 0.4560899416 0.4560899416 0.4466152908 0.4466152908 0.4295073862 0.4295073862 0.4244346955 0.4244346955 0.4215790140 0.4215790140 0...
result:
ok 200 numbers
Test #29:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
200 992764246 17126457 985618187 23996058 980833877 28004352 973042935 32356685 950658631 35575236 938854435 36122018 935201525 47215013 915279860 60530419 907690503 65842362 900097175 92773195 890646184 95180563 879083806 104882676 868284415 107968225 857799213 119052095 847145489 125435878 8356089...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200 numbers
Test #30:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
200 998702966 503572044 993435589 493373480 977267733 484062014 956181259 473682217 952439812 472077191 945263262 462178911 943573900 457687653 938833310 454124491 900990711 446178552 897499133 441762267 896187401 424228933 889416081 415204684 881511815 399618134 875681926 391062604 863319600 386754...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200 numbers
Test #31:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
200 500000000 500000003 500000003 500000005 500000006 500000007 500000007 500000008 500000009 500000010 500000012 500000012 500000014 500000015 500000015 500000016 500000016 500000017 500000018 500000019 500000020 500000020 500000022 500000024 500000024 500000025 500000026 500000027 500000027 500000...
output:
1.0000000000 0.0000003980 0.0000003920 0.0000003920 0.0000003880 0.0000003860 0.0000003840 0.0000003840 0.0000003820 0.0000003800 0.0000003780 0.0000003740 0.0000003740 0.0000003700 0.0000003680 0.0000003680 0.0000003660 0.0000003660 0.0000003640 0.0000003620 0.0000003600 0.0000003580 0.0000003580 0...
result:
ok 200 numbers
Test #32:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
200 500000098 500000097 500000096 500000095 500000095 500000094 500000090 500000090 500000089 500000088 500000085 500000085 500000083 500000082 500000082 500000081 500000081 500000079 500000078 500000076 500000076 500000075 500000075 500000074 500000074 500000074 500000073 500000073 500000072 500000...
output:
1.0000000000 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0.0000002040 0...
result:
ok 200 numbers
Test #33:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
200 500000103 500000000 500000108 500000001 500000111 500000001 500000112 500000007 500000114 500000009 500000114 500000009 500000115 500000011 500000116 500000014 500000117 500000017 500000117 500000018 500000119 500000019 500000120 500000019 500000121 500000021 500000122 500000022 500000124 500000...
output:
1.0000000000 0.0000001920 0.0000001920 0.0000001820 0.0000001820 0.0000001760 0.0000001760 0.0000001740 0.0000001740 0.0000001700 0.0000001700 0.0000001700 0.0000001700 0.0000001680 0.0000001680 0.0000001660 0.0000001660 0.0000001640 0.0000001640 0.0000001640 0.0000001640 0.0000001600 0.0000001600 0...
result:
ok 200 numbers
Test #34:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
200 500000097 500000096 500000102 500000093 500000104 500000093 500000106 500000091 500000108 500000089 500000109 500000086 500000113 500000084 500000116 500000083 500000118 500000079 500000120 500000079 500000123 500000074 500000124 500000072 500000126 500000070 500000126 500000066 500000127 500000...
output:
1.0000000000 0.0000002060 0.0000002060 0.0000001960 0.0000001960 0.0000001920 0.0000001920 0.0000001880 0.0000001880 0.0000001840 0.0000001840 0.0000001820 0.0000001820 0.0000001740 0.0000001740 0.0000001680 0.0000001680 0.0000001640 0.0000001640 0.0000001600 0.0000001600 0.0000001540 0.0000001540 0...
result:
ok 200 numbers
Test #35:
score: 0
Accepted
time: 137ms
memory: 13436kb
input:
200000 2 1 1 2 2 2 2 1 1 2 1 1 1 2 1 2 2 2 2 2 1 2 1 2 2 2 2 2 2 2 2 1 1 2 1 1 2 1 1 1 1 1 2 2 1 2 2 1 1 2 2 2 2 2 1 1 2 1 1 1 2 1 1 2 2 1 2 1 1 2 2 1 2 1 1 1 1 2 2 1 1 2 1 2 1 1 2 2 2 1 1 1 2 2 1 1 1 1 1 2 2 1 1 2 2 1 1 1 1 1 2 1 2 2 1 1 1 1 1 1 2 1 1 1 2 1 2 1 2 1 2 1 1 2 2 1 2 2 1 2 1 1 2 2 2 2 2...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200000 numbers
Test #36:
score: 0
Accepted
time: 292ms
memory: 13380kb
input:
200000 826195813 646615173 159628200 374638794 815733933 164425911 954475669 912483360 445640232 157838401 803404467 771535647 576948347 543250548 882302789 853858779 492428435 899768248 919155264 316690227 394230658 256079774 881251367 253203039 670869319 390539684 714210637 778980511 832622300 589...
output:
1.0000000000 0.1738026222 0.1738026222 0.1738026222 0.1738026222 0.1738026222 0.1738026222 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0.0455225232 0...
result:
ok 200000 numbers
Test #37:
score: 0
Accepted
time: 192ms
memory: 13452kb
input:
200000 1544 3120 8560 16075 17794 25926 28911 40358 53667 57374 64547 68991 69181 76940 84358 89458 92436 94498 97345 97570 109375 109937 110148 111064 121537 124774 134519 134675 134856 135189 139344 139753 142300 143847 144739 148042 154969 156717 163219 167744 174335 175522 212988 213578 221396 2...
output:
1.0000000000 0.9999984560 0.9999968800 0.9999914400 0.9999839250 0.9999822060 0.9999740740 0.9999710890 0.9999596420 0.9999463330 0.9999426260 0.9999354530 0.9999310090 0.9999308190 0.9999230599 0.9999156419 0.9999105419 0.9999075639 0.9999055019 0.9999026549 0.9999024299 0.9998906249 0.9998900629 0...
result:
ok 200000 numbers
Test #38:
score: 0
Accepted
time: 168ms
memory: 13384kb
input:
200000 501386759 501382586 501380865 501377627 501358132 501348175 501345688 501343642 501339748 501332872 501331137 501316671 501315771 501309522 501309443 501299121 501283617 501277028 501265596 501259347 501254529 501250277 501249185 501248944 501242978 501238747 501235283 501229601 501227693 501...
output:
1.0000000000 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0.4986121896 0...
result:
ok 200000 numbers
Test #39:
score: 0
Accepted
time: 194ms
memory: 13448kb
input:
200000 2426 14535 17295 21235 25770 33490 35524 35593 38116 40208 43855 65288 76498 77573 79961 94138 97007 101480 107182 107930 126207 129141 138335 157528 159370 161934 164652 166093 167358 170702 179821 181677 181689 183967 189988 197413 207479 208668 209539 219561 223783 224689 226009 228681 228...
output:
1.0000000000 0.9999975740 0.9999854650 0.9999827050 0.9999787650 0.9999742300 0.9999665100 0.9999644760 0.9999644070 0.9999618840 0.9999597920 0.9999561450 0.9999347119 0.9999235019 0.9999224269 0.9999200389 0.9999058619 0.9999029929 0.9998985199 0.9998928179 0.9998920699 0.9998737929 0.9998708589 0...
result:
ok 200000 numbers
Test #40:
score: 0
Accepted
time: 181ms
memory: 13356kb
input:
200000 499145404 499140346 499135319 499133392 499133262 499116323 499114798 499111188 499110942 499100150 499098714 499090532 499085351 499081153 499072078 499067125 499066845 499064449 499055770 499052915 499052859 499052479 499051335 499042011 499028889 499026009 499020908 499014643 499012293 499...
output:
1.0000000000 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0.5008474881 0...
result:
ok 200000 numbers
Test #41:
score: 0
Accepted
time: 184ms
memory: 13380kb
input:
200000 499024701 17211 499045199 28603 499077569 53176 499079223 57240 499085433 72297 499093782 82853 499099566 88814 499108026 95787 499117469 101698 499121104 107681 499143140 135987 499151072 143554 499161646 151658 499208399 153573 499213836 161909 499239422 178863 499244768 182578 499250579 20...
output:
1.0000000000 0.5009742920 0.5009742920 0.5009537939 0.5009537939 0.5009214239 0.5009214239 0.5009197699 0.5009197699 0.5009135598 0.5009135598 0.5009052108 0.5009052108 0.5008994268 0.5008994268 0.5008909668 0.5008909668 0.5008815238 0.5008815238 0.5008778888 0.5008778888 0.5008558527 0.5008558527 0...
result:
ok 200000 numbers
Test #42:
score: 0
Accepted
time: 178ms
memory: 13444kb
input:
200000 502506783 502488673 502519744 502476665 502529630 502467820 502569569 502457360 502571766 502446957 502575682 502443101 502581771 502422464 502601993 502414495 502610572 502404952 502613284 502394491 502622413 502389237 502644415 502383985 502649596 502374513 502670958 502363522 502671884 502...
output:
1.0000000000 0.4974928100 0.4974928100 0.4974798490 0.4974798490 0.4974699630 0.4974699630 0.4974300239 0.4974300239 0.4974278269 0.4974278269 0.4974239109 0.4974239109 0.4974178219 0.4974178219 0.4973975999 0.4973975999 0.4973890209 0.4973890209 0.4973863089 0.4973863089 0.4973771799 0.4973771799 0...
result:
ok 200000 numbers
Test #43:
score: 0
Accepted
time: 167ms
memory: 13376kb
input:
200000 999999273 8610 999995643 20796 999987957 29707 999978314 31773 999976138 39982 999965464 44527 999964306 48914 999961119 66742 999953586 68747 999950835 73383 999947148 83798 999940904 89424 999930306 96634 999909298 99789 999906012 109505 999884972 120659 999877486 135764 999864219 141279 99...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200000 numbers
Test #44:
score: 0
Accepted
time: 178ms
memory: 13340kb
input:
200000 999995080 499961108 999990291 499959181 999974762 499956685 999970770 499945156 999955632 499933842 999946992 499931355 999939493 499915120 999919048 499909768 999910246 499900885 999901861 499895565 999900149 499894024 999889294 499873404 999883798 499865409 999878064 499850394 999876334 499...
output:
1.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0.0000000000 0...
result:
ok 200000 numbers
Test #45:
score: 0
Accepted
time: 187ms
memory: 13404kb
input:
200000 500000000 500000001 500000001 500000001 500000001 500000002 500000002 500000003 500000004 500000007 500000007 500000008 500000008 500000009 500000010 500000011 500000011 500000011 500000013 500000013 500000015 500000019 500000019 500000019 500000019 500000020 500000022 500000022 500000024 500...
output:
1.0000000000 0.0003998341 0.0003998321 0.0003998321 0.0003998321 0.0003998321 0.0003998301 0.0003998301 0.0003998281 0.0003998261 0.0003998201 0.0003998201 0.0003998181 0.0003998181 0.0003998161 0.0003998141 0.0003998121 0.0003998121 0.0003998121 0.0003998081 0.0003998081 0.0003998041 0.0003997961 0...
result:
ok 200000 numbers
Test #46:
score: 0
Accepted
time: 152ms
memory: 13380kb
input:
200000 500099878 500099877 500099876 500099876 500099876 500099876 500099875 500099873 500099873 500099873 500099873 500099872 500099871 500099871 500099869 500099867 500099866 500099864 500099860 500099857 500099857 500099855 500099854 500099853 500099852 500099852 500099852 500099850 500099850 500...
output:
1.0000000000 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0.0002001619 0...
result:
ok 200000 numbers
Test #47:
score: 0
Accepted
time: 165ms
memory: 13368kb
input:
200000 500099715 500000003 500099717 500000006 500099719 500000008 500099721 500000009 500099723 500000009 500099725 500000012 500099727 500000016 500099729 500000020 500099731 500000021 500099733 500000025 500099735 500000026 500099736 500000027 500099740 500000031 500099741 500000031 500099743 500...
output:
1.0000000000 0.0002004838 0.0002004838 0.0002004798 0.0002004798 0.0002004758 0.0002004758 0.0002004718 0.0002004718 0.0002004678 0.0002004678 0.0002004638 0.0002004638 0.0002004598 0.0002004598 0.0002004558 0.0002004558 0.0002004518 0.0002004518 0.0002004478 0.0002004478 0.0002004438 0.0002004438 0...
result:
ok 200000 numbers
Test #48:
score: 0
Accepted
time: 186ms
memory: 13440kb
input:
200000 500100202 500100197 500100202 500100197 500100205 500100194 500100207 500100192 500100208 500100191 500100210 500100190 500100212 500100189 500100214 500100185 500100215 500100184 500100216 500100182 500100219 500100179 500100220 500100178 500100222 500100175 500100226 500100174 500100227 500...
output:
1.0000000000 0.0001995162 0.0001995162 0.0001995162 0.0001995162 0.0001995102 0.0001995102 0.0001995062 0.0001995062 0.0001995042 0.0001995042 0.0001995002 0.0001995002 0.0001994962 0.0001994962 0.0001994922 0.0001994922 0.0001994902 0.0001994902 0.0001994882 0.0001994882 0.0001994822 0.0001994822 0...
result:
ok 200000 numbers