QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#474277 | #8795. Mysterious Sequence | ucup-team864# | AC ✓ | 1ms | 3928kb | C++17 | 871b | 2024-07-12 17:04:59 | 2024-07-12 17:05:00 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3824kb
input:
1.0 1.0 10 1 10
output:
1.000000000000000000000000000000 -0.323529411764705898679750362135 0.676470588235294156831400869123 0.352941176470588202640499275731 1.029411764705882248449597682338 1.382352941176470562112399420585 2.411764705882352810561997102923 3.794117647058823372674396523507 6.205882352941175739147183776367 10...
result:
ok 10 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
1 1 2 1 100
output:
1.000000000000000000000000000000 100.000000000000000000000000000000
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
1 1 5 50 100
output:
50.000000000000000000000000000000 0.000000000000000000000000000000 50.000000000000000000000000000000 50.000000000000000000000000000000 100.000000000000000000000000000000
result:
ok 5 numbers
Test #4:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
0.25 0.25 10 1 1
output:
1.000000000000000000000000000000 55.875536480686697871078649768606 14.218884120171674467769662442151 17.523605150214592640622868202627 7.935622317596567221187342511257 6.364806866952790187497157603502 3.575107296137339130126520103659 2.484978540772532440428221889306 1.515021459227467781616383035725 ...
result:
ok 10 numbers
Test #5:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.25 0.63 6 93 12
output:
93.000000000000000000000000000000 -14.204807958665043088331003673375 55.038798010333742638522380730137 4.810670488624458229764968564268 35.877110368666379258684173692018 12.000000000000000000000000000000
result:
ok 6 numbers
Test #6:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
0.25 0.80 10 5 63
output:
5.000000000000000000000000000000 78.769536183531357664833194576204 23.692384045882839416208298644051 68.938724958295793499019055161625 36.188588476280223460435081506148 64.198127085706687466881703585386 45.000402552450850635068491101265 62.608602306678065474443428684026 51.65247261863020611372121493...
result:
ok 10 numbers
Test #7:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.25 0.99 3 18 30
output:
18.000000000000000000000000000000 48.719999999999998863131622783840 30.000000000000000000000000000000
result:
ok 3 numbers
Test #8:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
0.28 0.64 9 6 10
output:
6.000000000000000000000000000000 20.950403348507801837286024237983 9.706112937582185296037096122745 16.125969765568004987699168850668 10.727183814411640483399423828814 13.324232117998784374890419712756 10.596182634263108468530845129862 11.494439693112893152715514588635 10.000000000000000000000000000...
result:
ok 9 numbers
Test #9:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
0.31 0.40 7 10 49
output:
10.000000000000000000000000000000 240.115063998688214041976607404649 78.435669839593344931927276775241 120.361083249749228230029984842986 68.686203743259596876669093035161 69.437156460310177408246090635657 49.000000000000000000000000000000
result:
ok 7 numbers
Test #10:
score: 0
Accepted
time: 0ms
memory: 3924kb
input:
0.32 0.28 5 36 6
output:
36.000000000000000000000000000000 10.121376811594195999077783199027 13.318840579710144567116003599949 7.096014492753621283327447599731 6.000000000000000000000000000000
result:
ok 5 numbers
Test #11:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.35 0.65 10 86 82
output:
86.000000000000000000000000000000 79.533924786230855374924431089312 83.736873675180788723082514479756 81.004956897363328494066081475466 82.780702802944688301067799329758 81.626467964316802294888475444168 82.376720609424921804020414128900 81.889056390104656202311161905527 82.2060381326628260012512328...
result:
ok 10 numbers
Test #12:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
0.36 0.68 8 72 59
output:
72.000000000000000000000000000000 38.239918642605687182367546483874 62.726370711338049090954882558435 48.584638133053566377839160850272 60.144401811609156993654323741794 54.689538582655728760073543526232 60.586427121650288540877227205783 59.000000000000000000000000000000
result:
ok 8 numbers
Test #13:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
0.43 0.61 2 93 84
output:
93.000000000000000000000000000000 84.000000000000000000000000000000
result:
ok 2 numbers
Test #14:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
0.46 0.96 6 65 35
output:
65.000000000000000000000000000000 -16.617423662818051610656766570173 54.755985115103698035454726777971 9.235026436642371550078678410500 56.813857871355040174421446863562 35.000000000000000000000000000000
result:
ok 6 numbers
Test #15:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
0.50 0.90 4 19 1
output:
19.000000000000000000000000000000 -6.565217391304348559799564100103 13.817391304347827585274899320211 1.000000000000000888178419700125
result:
ok 4 numbers
Test #16:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
0.54 0.35 3 16 22
output:
16.000000000000000000000000000000 30.370370370370366686074703466147 22.000000000000000000000000000000
result:
ok 3 numbers
Test #17:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
0.55 0.89 10 74 13
output:
74.000000000000000000000000000000 -48.321937076576517711146152578294 39.282934607882907585008069872856 -21.400909963817497327909222804010 23.191311320916170757300278637558 -6.291588641293671457788150291890 17.179893322903879493424028623849 3.849427436845758165873121470213 17.407290147649632672255393...
result:
ok 10 numbers
Test #18:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
0.56 0.36 3 31 88
output:
31.000000000000000000000000000000 137.214285714285693984493263997138 87.999999999999985789145284797996
result:
ok 3 numbers
Test #19:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
0.57 0.93 7 71 48
output:
71.000000000000000000000000000000 -34.080565361686012693098746240139 46.604077743838971059631148818880 -5.130601472379787253430549753830 40.417349462513769253746431786567 18.266429824319637020835216389969 48.000000000000000000000000000000
result:
ok 7 numbers
Test #20:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
0.58 0.41 8 30 69
output:
30.000000000000000000000000000000 89.432121682809821550108608789742 64.170630576029694225326238665730 73.886135624049245507194427773356 69.163917198120742568789864890277 70.408387580770209979164064861834 69.194070848076222546296776272357 69.000000000000000000000000000000
result:
ok 8 numbers
Test #21:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
0.58 0.49 6 31 96
output:
31.000000000000000000000000000000 99.557613538417186305196082685143 72.933415852281967772796633653343 91.084611828147956202883506193757 88.566448627943984206467575859278 96.000000000000000000000000000000
result:
ok 6 numbers
Test #22:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
0.61 0.29 8 62 25
output:
62.000000000000000000000000000000 34.407651257133728961434826487675 38.968667266851575448072253493592 33.749105897348243843225645832717 31.887868104769381716323550790548 29.238840254140310292996218777262 27.083174305408707738251905539073 25.000000000000000000000000000000
result:
ok 8 numbers
Test #23:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
0.63 0.89 9 37 85
output:
37.000000000000000000000000000000 -5.887853302176887737573451886419 29.220652419628560636510883341543 13.168821585428560183572699315846 34.302738252289415754603396635503 33.330976309973749494020012207329 51.527952119821051724102289881557 62.127178751363899777970800641924 85.0000000000000000000000000...
result:
ok 9 numbers
Test #24:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
0.64 0.67 2 74 42
output:
74.000000000000000000000000000000 42.000000000000000000000000000000
result:
ok 2 numbers
Test #25:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
0.65 0.56 2 94 96
output:
94.000000000000000000000000000000 96.000000000000000000000000000000
result:
ok 2 numbers
Test #26:
score: 0
Accepted
time: 0ms
memory: 3916kb
input:
0.65 0.90 10 97 23
output:
97.000000000000000000000000000000 -61.703576279117562819465092616156 47.192675418573578838277171598747 -24.857979629132977095196110894904 26.315721117779773408074106555432 -5.266962939662803933060786221176 20.260623095220978484576335176826 8.429138366197122422818210907280 23.713500723727065633283928...
result:
ok 10 numbers
Test #27:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
0.67 0.88 4 70 42
output:
70.000000000000000000000000000000 0.547821506509138744789311203931 61.967040409361125341547449352220 42.000000000000000000000000000000
result:
ok 4 numbers
Test #28:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.69 0.39 10 2 27
output:
2.000000000000000000000000000000 22.365907687016132854296301957220 16.212476304041132380007184110582 19.909312647724668465798458782956 20.060291485506059672161427442916 21.606233057611802905739750713110 22.731814489099509302150181611069 24.111382889947265084629179909825 25.50226184481241986645727592...
result:
ok 10 numbers
Test #29:
score: 0
Accepted
time: 0ms
memory: 3920kb
input:
0.69 0.57 4 88 47
output:
88.000000000000000000000000000000 11.843609597552818613053204899188 58.332090622311440597513865213841 47.000000000000000000000000000000
result:
ok 4 numbers
Test #30:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
0.71 0.89 8 4 41
output:
4.000000000000000000000000000000 6.838890362691073754319859290263 8.415612157510661717196853714995 12.061697054627625647071909043007 16.053699728970102000857878010720 22.133037186187358713596040615812 30.002249160976415254253879538737 41.000000000000000000000000000000
result:
ok 8 numbers
Test #31:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.72 0.49 8 21 48
output:
21.000000000000000000000000000000 19.940442369940310385345583199523 24.647118506357024614317197119817 27.516742085847806009724081377499 31.889142369925359332683001412079 36.443386128411681568195490399376 41.864917773719838578472263179719 48.000000000000000000000000000000
result:
ok 8 numbers
Test #32:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.74 0.58 3 57 29
output:
57.000000000000000000000000000000 -5.486486486486479741131461196346 29.000000000000000000000000000000
result:
ok 3 numbers
Test #33:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
0.76 0.70 2 91 18
output:
91.000000000000000000000000000000 18.000000000000000000000000000000
result:
ok 2 numbers
Test #34:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
0.77 0.36 10 31 25
output:
31.000000000000000000000000000000 5.214972085026420067777053191094 15.175528505470342821581652970053 13.562546899821676049668894847855 15.906351374832013334525981917977 17.130407442556453645465808222070 18.916700225707995031143582309596 20.732805853115479521875386126339 22.77427258815379929046684992...
result:
ok 10 numbers
Test #35:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
0.77 0.96 8 78 68
output:
78.000000000000000000000000000000 -40.097557007604983425608224933967 44.004881104144160985924827400595 -4.609896277109783113701269030571 38.695065726603857569898536894470 25.369700183459571007915656082332 56.681932238803597101650666445494 67.999999999999971578290569595993
result:
ok 8 numbers
Test #36:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
0.78 0.52 7 73 77
output:
73.000000000000000000000000000000 8.727547506052934167541934584733 44.767487054721286199310270603746 39.456964605830137315933825448155 54.055525661002569393076555570588 62.680931610613676241428038338199 77.000000000000000000000000000000
result:
ok 7 numbers
Test #37:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
0.78 0.69 4 42 97
output:
42.000000000000000000000000000000 57.297905113986445257978630252182 73.672365988909433553999406285584 97.000000000000000000000000000000
result:
ok 4 numbers
Test #38:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
0.78 0.70 10 54 99
output:
54.000000000000000000000000000000 -13.012886350899689702487194153946 27.649948646298238230656352243386 12.457939498482843987403612118214 29.072156861225384005820160382427 31.396840000693789107799602788873 44.840045003398913081582577433437 56.953023103136807492319348966703 75.811389522825948006357066...
result:
ok 10 numbers
Test #39:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
0.78 0.76 10 97 83
output:
97.000000000000000000000000000000 -43.734736959040489523431460838765 39.606905171948419308591837761924 -2.345014054751004550780635327101 28.272136967975015409137995447963 20.270056153409740318238618783653 37.297467895320636444012052379549 44.497267634941493952283053658903 63.053944355698035906243603...
result:
ok 10 numbers
Test #40:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
0.78 0.95 10 100 32
output:
100.000000000000000000000000000000 -63.269578817364127587552502518520 45.649728522455980339600500883535 -24.499311628980251498433062806726 24.257779025728595456712355371565 -4.353278407462966015373240225017 19.649332916621062850026646628976 11.190865187874692310288082808256 27.3957411173322498143534...
result:
ok 10 numbers
Test #41:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
0.79 0.90 10 98 42
output:
98.000000000000000000000000000000 -58.246914628041366768229636363685 42.184937443847317695144738536328 -19.096122584597850391219253651798 22.880506857630308559237164445221 0.889090091389874714877805672586 21.294837344065257411784841679037 17.623102584062451114732539281249 33.087604651068090788612607...
result:
ok 10 numbers
Test #42:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
0.81 0.48 10 97 1
output:
97.000000000000000000000000000000 -38.257501681599222820295835845172 15.571423637904622694350109668449 -5.750747660464881505504308734089 2.816177741217671837148373015225 -0.479254906636832345157017698511 0.963568841408644516377535182983 0.550448406355329211692151147872 0.9083762530239738453019526787...
result:
ok 10 numbers
Test #43:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
0.81 0.86 10 20 100
output:
20.000000000000000000000000000000 -3.332842869651402306629961458384 14.500397275582363576518218906131 8.879076925321509605737446690910 19.662393966511256593321377295069 23.562545268650616492323024431244 35.995320478806675623673072550446 49.419998518872944259783253073692 70.98617441206083356064482359...
result:
ok 10 numbers
Test #44:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
0.84 0.85 10 74 95
output:
74.000000000000000000000000000000 -36.290804877098295833093288820237 32.415723903237434910806769039482 -3.617976066814108548896911088377 24.514265421627968066786706913263 17.516703297375514125633344519883 35.551156378179200601152842864394 44.752169160439706274701165966690 67.810305016221605001192074...
result:
ok 10 numbers
Test #45:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
0.88 0.37 10 3 96
output:
3.000000000000000000000000000000 29.021828490376417875040715443902 26.649209071531245740516169462353 34.189380524386770332512242021039 39.946862217926920379795774351805 47.803309545798811086569912731647 56.847251420935918986288015730679 67.712805782369159146583115216345 80.62075211423115206343936733...
result:
ok 10 numbers
Test #46:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
0.91 0.50 10 100 98
output:
100.000000000000000000000000000000 -22.586857854484428287378250388429 29.445959352419169618997329962440 15.502394083459229534582846099511 28.830158292157484822837432147935 33.986641087592929011407250072807 45.342922535788304116977087687701 58.255380051363815141485247295350 75.68385711463524501141364...
result:
ok 10 numbers
Test #47:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
0.94 0.48 10 44 97
output:
44.000000000000000000000000000000 -1.582743438717797657133701250132 19.632221167605266032296640332788 17.694571046964405525159236276522 26.056362944597069031260616611689 32.986375270464158404593035811558 43.514246967642904451167851220816 56.736852279407116839138325303793 74.2194796871112743019693880...
result:
ok 10 numbers
Test #48:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
0.94 0.54 10 28 95
output:
28.000000000000000000000000000000 0.452546307145842707786442815632 15.545393528717093900581858179066 14.857044922852821855485672131181 22.360134732988882433346589095891 29.041330907350072720873868092895 39.373323808723064587411499815062 52.693243070168712449685699539259 70.79324334266904372725548455...
result:
ok 10 numbers
Test #49:
score: 0
Accepted
time: 1ms
memory: 3808kb
input:
0.95 0.57 10 2 94
output:
2.000000000000000000000000000000 9.227284174161063390329218236730 9.905919965453010789246945932973 14.670175946452165050004623481072 19.583041529437775096766927163117 26.965889742443614807143603684381 36.779928927100961288942926330492 50.311489633938776933064218610525 68.7604746406893667654003365896...
result:
ok 10 numbers
Test #50:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
0.98 0.90 10 21 99
output:
21.000000000000000000000000000000 -8.213193484970178204207513772417 10.851070384729228024411895603407 3.242174840561483861733904632274 12.943294690006556635353263118304 15.602386152711765987532999133691 26.939303650663433131740021053702 40.442665115090747463000298012048 63.87918509838601721639861352...
result:
ok 10 numbers
Extra Test:
score: 0
Extra Test Passed