5 kyu

The Bee

152 of 274EgorArh
Description
Loading description...
Algorithms
Mathematics
Matrix
Puzzles
Performance
Dynamic Programming
View
AllIssues2Questions2Suggestions10Show Resolved
  • Please sign in or sign up to leave a comment.
  • m1dn1ght.exe Avatar

    that moment when you dont know how to solve it ,look at solutions and still dont know how to solve it .. gotta love programming

  • Nikitos-art Avatar

    A hint would be nice. I managed to calculate the number of fields but the number of moves grows astronomically so its hard to see any pettern.

  • nikunjsoni Avatar

    difficult to understand, please help me. what is N here it is side of haxagonal? and how to calculate cells for N side?

  • dfhwze Avatar

    The picture in the description is gone

  • lyokha Avatar

    Hmm, my Haskell solution computes all [2..200] values in 3.8 sec at my i5 core ThinkPad, but when I run tests only (5 values) here, it exceeds the time limit 12 sec. I wish I could see what happens at the CodeWars host machine! I use GHC 9.6.1 at my laptop, here is 9.2.5, but it's unlikely the cause. I also used Template Haskell in the solution and it could take more time to compile. Is compilation time included into the whole time limit 12 sec?

  • maestroviktorin Avatar

    It is the case when you have to disassemble the picture extremely thoroughly. Just play with it and everything will become clear. I really appreciated the idea of this kata. Thanks, Egor!

  • avermakov Avatar

    This is absolutely beautiful! Thank you.

  • xenois Avatar

    I have seen 4 kyu katas way easier than this.

  • Madjosz Avatar
  • JohanWiltink Avatar

    This sequence is not currently in the OEIS. Even though it would spoil the kata a bit, I think it is worthy of inclusion.

    Author, how did you come up with the sequence? Is there someplace on the web that would deserve attribution?

    @mods, are there reasons not to submit this sequence to the OEIS? ( I personally would not consider spoiling the kata enough reason not to submit it. Other opinions may be available. )

  • mor1nch Avatar

    difficult :(

  • Kacarott Avatar
  • JohanWiltink Avatar

    theBee 1 == 1 is totally valid ( and theBee 1 == 0 is totally wrong ).

    A case can even be made that theBee 0 == 0 ( though I can understand undefined or None ).

    IMO the theBee 1 case should be added to the kata.

  • JohanWiltink Avatar

    Haskell translation

    this translation modifies the description: it adds the code length limit ( and minor other edits )

  • JohanWiltink Avatar

    Needs performance tag ( in addition to dynamic programming ).

  • JohanWiltink Avatar

    ( JS, possibly others )

    [Code Length requirement] (current code length = 822, limit = 1000)
    

    This is unspecified.

  • RealKenshiro Avatar

    Great one!

    solution should (be) less than 1000 characters (typo in feedback)

  • dfhwze Avatar

    Could use tag: dynamic programming

  • dfhwze Avatar
  • dfhwze Avatar
  • EgorArh Avatar

    Can anyone help me translate the task in Js here's what I have done, and then tight, and maybe I'm not a lot of mistakes, do not judge severely

  • dfhwze Avatar

    Since the input scope is small (1 < n <= 200), I suggest you use the entire input range in random tests, and shuffle tests.

  • heroicfun Avatar

    Current kata votes:

    7 kyu - 1
    6 kyu - 2
    5 kyu - 3
    
  • EgorArh Avatar

    Anyone can tell me how to spell the condition in the tests so that decisions of this type are not made, if someone can help me will be immensely grateful to him

    the_bee=lambda n[None,None,11,291,8547,259123,7997355,250062515,7900153283,251686581987,8073549437643,260453164773827,8441983967058723,274715571055249171,8969873019615172459,293727992832116083539,9642550297656399476611,317240324217012764748739,10457339550737978290615179,345299384346565376929178723,11419120154603538332020717795,378150147864543283588344189939,12538137308570379387565355826475,416187652896595291663214738232819,13828964966852410000460732949996867,459935402795315455457744948582479523,15310086094877865206334698577222556235,510038402092382958084651108786664718595,17003827140864057765120662442839902538403,567264977361566450687153678711098118206163,18936516473015161344556219168894848667781355,632514482828705457184200306673637789184339603,21138802429370619996750915685030966428647677699,706829476133138423874525925298446150375545319299,23646100490685648184523497492883136239891924721419,791411731870657316093895539766784082345199507500963,26499157440032013011876551710387034103197730383700067,887641899066479488077130361513053340070836955453520819,29744731072387855616266925727832792707771766088330578603,997102876107586131306981076732617018001131244500597128499,33436390880677093957316360712273868432158574064013541848259,1121607158055700449472018243818923205001186581458345635982947,37635450089032588829446386168813101192108041844817301017317835,1263228550312874082928477701894222760861585683598300940136568899,42412043435067464569757331236731424268949802460020748596550158883,1424338762804180355530673042650739566312993252773216551446107637395,47846368777542708012041199948021313776817293226191405772902559027819,1607649513617263824082484851593496736723739108479015604576012375779795,54030114255015537643330239970149057489476635531180383818420169302537859,1816260888737072916004661084936743859390325531136027447503359226807765827,61068096560504518254246449553519425203436341865056944755649047832571626123,2053716830872415578085798486819123541555345096432467178349365089002307330787,69080140084143934121880129802049281967329316434955393674551658574007650998243,2324068769832218592984919944497882230963260676815510226215164321734804792241011,78203231339571879049829280531200075356178351699948857690424478299391108461735979,2631948563344771519734098727533949579268055135767569122767240770488510535074520179,88593988349150989877353995422840282084609309973980211691173429881874631019370280003,2982652094342864344532048429258731700682331091970542485744946427779011637501005356579,100431490636650407750418631970152484163647163574710287308503529336539102570440875589963,3382235072395753205766641611971130682793143915079333137848364964111513963101705000941443,113920522289065795664042405660577038058313418188471387644799693854393020387268918282115491,3837622817288365844454412397785369403454539505061080655067326957194709205604164476765733459,129295288339007581297863320968334857434111635197599855525421532480386054676566796201799087083,4356736066305638691782723331558934853606322151800788041033580492010554079762288081750945873171,146823673638803979410166943392298660282540555005235178767311232999992964826914543859008170589699,4948635148722446631767307991613593620250744859059985273341512765780712187918499151182389347663619,166812123620384373251854168991980630382459577609937853858798660663670921403726785230072412663913995,5623685217167731890536046165733634300630043459768637578560406835775707639240026011864849615751904803,189611238058278704248810032112507576689317691484496049584258598694652044606587546792462575942055386979,6393745622586305515843471773719315686440769890192298234289805714129121607359386416429772625828200850227,215622182401915192989993386135968668734308412633098943181325998964044657964463292431421600439416486784427,7272386975082867046631026617511481910194564629921965803527455688051362480601427230525255948849308590519219,245304036675701397901842648799891662957692084309678110116621105040413294897738843250293420693504844619342787,8275139955730761144834403498210292145168886955228405352475105776102021039925478558147928558623460898328462819,279182219656790679830057010562222050102396727000189302946219882602480094103229614823595160156739125365025908939,9419780544477065651452774872598498953956812807281213365367022677588613247177428010198341063472330289720621326019,317858146370208953999532215440114114008029050454018394647084530572051931073403379782789698613596814554075845458211,10726657018069315720443201306224936518987192644885798922219776653366404143006052637156629969224063094430564751173139,362020300278584306976016378092749325130542101227376854082214137867219772514330672200265664922898410770903144179608939,12219064862664012370652268394798558465818894504568440237360914311151091715016702366677770841091094699327105525153392723,412456928336287438134974486193776385322505779966282956703090053879649668729203566666115679090396763681325826689793521027,13923676653608601076148057967235067743553356842606465989097277834131933482095198940980264364058516630730330748879867988675,470070597838992139192432309457493222863648593944462382928809473018087653557388698636301090173769512731044004926003976417675,15871034997225180932847260673572984613688641045222664649562427844834111202602225246727882817231997119768029171759364913938787,535894889319526760085022468476355307734141935401230026508725678005170295420462669913132449700853077595674201874994998175053539,18096117826264135312801502899320955785720039490086297522272595129864247848568093977527946416164062404298081322156502878384415475,611113540297248031399306703051649707687273066459838407591966114407009922865646488552887107195887914571105793436562373212656616235,20638986715014753548022543796957653423109133069342341271408497017804595449529405233863754698736862811443116838998118415270213436147,697082401259807403329884314096884277438387353951632486669363116915088319281232969730265340460557405218063062775280021033438713054019,23545530458255616342629569068096654375806955825439540199941146492799808247699082835411437200314978157281378465255221530830718519518627,795354618737904043004422583748334668643199224890450758855551933477450031950267266673047725256247218707342547224963264664689811642550347,26868317970631626501119950579064795165626171649704299416441641807825384867539425771335169663316941726234144646686564878595694753193053699,907709521753600133982126801234655258990864754797095496170058218249566939540942950799715753837521702419200825754624799100343176579435243683,30667576644510193852399072112376955630168404868937134955435494112734573827572570163099173509093072924090646367234518035945449632265461248467,1036185758462480659600163701525890964062888554765235318890545094377202427751670304520005056375800033064129442117945581143623541588735469403883,35012314694946582766354922265681041018917740209915366038759557040613402772989564213704051011415631131011055531611948106020536198517022737836947,1183119310827044238514193608980372441602601068307318743115293211174481395047715703666287421484184324905323280876710205321157122205861650841525507,39981608766102181803060732634168097993997458098272926251398572408495304766445869738711077452753029533076931862364923191931724624306542747646209667,1351187108213429722979140509304988683735874641183075390291725150455215677160073262420483137540271472900921640076713680524500779041090355520208502027,45666081227200887271114522070552502013307975748539404495063928402213697455312233413537169883315454971603483347601660985934548414277190412418976722083,1543457067688953886685124327202714915453905834275058246865687451615956141285216515172906170345605124527934870693859196961535616965954803204341899091555,52169595208663087427829240473193918460305006720999940624575970316305100758428375582693728238637301406549912771633132847637068327274533350046980423641779,1763445511574633108689136973917768500985946767664582394636225419668456170583112135825871438544147470302182787492539627626657164440859589347168410042118315,59611199590283257764702728130059739681330249626072198901822605158930897757358349501993717191655671120945253025777282436616924546710068265113537893720427059,2015183053843222988925937615537555396830278965205300748331493795416390931917883231550988899870713261150881463942894854008456934179878748036773169337290085059,68127360933506704643678492493190916144972648895399254413088025720610302360699806881246622800304908655548729154954816003017597366001792019422570154677918612835,2303290208971354372280784156153208131609269445515547623331000645778268761054275068116532205562143595737940090184286617301178286743652525481014506235445803179979,77874524841296246186936845500332894315820630640923990816558299737640442253276596340091682381086700845832203700362891820492071215791202478414878749351408190915907,2633064162982692404364310485248716118651494340899604403529904213152912317185641104633027514671060459022997563133253085204428310124518827124718448885880841368594467,89032055537829625307762878091954446163825055415089513055365478889652678195913570727942602216281706217772489357025893194536470744558286960422263507538120588226176403,3010578360253763043171579164338729361668971380209746487949372940010960265753282078397847522040184227794496677926231085576758359515060696021503081295283562405290977387,101805609708251817912115842286035799786125247615610777990446034599126367565811958495063670235849994982950581595625832158780040602393021138933770443923129471426897823443,3442796805328656350085486091020785103567235970252927199938919041117736630619326744931498708954344750531914952991931418065682767048276169437530125687588497334378487264387,116431008966063856171547851050321053064558680581626953530074269050083621841214468427785230215100653295316370243288132476811617165032730974755068842925866675674627204721219,3937705261254570488349939476065761635262835747271948373681196431192270471309743939292300271068394233030676430572835928770789566099170033951336131368702745905057837790658699,133178684883552412988532673734686179171421933632103870306104309481523438823229929083984663258999371782248461970508157975557815896520367820916377661497068906928709522516082659,4504461850268829079791084722739599625184753458463272049100964917310364503568956384700726522696970846274086907061176841533687565006843026583179225743645408598940827569411380707,152358781514130956098920152772996719389862994153877101268101974094809781105311613752074042277498617864357399261642846556297412322500303980634029119762098933384688550731514739315,5153569935318084335615962372920142437071032445284985254277187262669106631159613875450276010869263976563413229719380019308500415177878125400545761203864349492371282281305474479659,174327012967448089616614066416089448287792934580529529234535459695761047972611846099409323609131654220681241891946422660998623211714348384550654797193787558253793000877012167903603,5897076589089526858417725385892527136276204899792727819824962007235732086991038856340206451277351091362545808731122685285212048175666685833751853577506554702224195490535141448831555,199491388113340660741184443614877790312953359122464506107884217450518131977871918127670309399660243028801710492002819278715096757296054127614975426932682002949714418496397341939125539,6748800449279501120317734996531239194120517428695469618943748694356567191006686140383950934030965317017010302872254654540552003643312341210652995504605004537285330509556486907955818315,228319931170503344359912381268995247365165192665309233335050997670661957188408125099342752707857559180112069076228539728748643657994252085343645499815599389190535727389670785001564750979,7724593324256051360896252890672731759615148360022958967471515649725396936585903717778826709511820273968846785439022832937173185445427401380342480012948292270316727398139860463647033538467,261349546103551396815435304068336332734818516745623819875074052244678963087605523878848056260704544667357612134419954358591047358754804040618621053317951296665088809533814939027819070685523,8842640563055408126359789029473216274223223653781659359811192787389601950887234550285232561043460086922488600501040395732582548051110552121389130349050030169717036796857720731869807874566635,299196194779822501413261097800827574302722889223934904205393066180405704853351609777906210514928945629294081580571815787109435569921470622329299588963315070211833253820510498351832834812606995,10123805950396846133934065015641073210320592449301443516799400130082453008953800015185357080080977667459002556790481206430903269756139581704155853733759552696681779527199428330865790777657523203,342566584152323695893593004830544509200325083200457242638505692650552883190037606504395278720809725225266079004427237771196432452351123338289426335457916249648862286282225075265660218997834186243,11592027745602196838503900331610325183592423517173692939137645405187481019792741410743673066144408352326532714547587795360229036422093700588157838315289382309587710639406435399241436942544462265355,392271586829228186828368924396577272290592341936585120420568681797937226600633537647734843038458595752659680347291228389879654003516649115107818510963558211599205707553970056087475049672362502093603,13274773470633121344995574498260131282547353308910317426786445056513884481392349524775883525694574737668203703656603298533340753711741719033342024566306284320647348213596158058376649429406650248306019,449241652828435334658874387675599600467218639291032818456953688461596723058010767926432963897547683717683866327040949533434056187007079043356224621976181746030754368708284663858463994070975604538004019,15203562186075252059641207366936969206034221730453907772547923628459911398528667068492856898538623432671513686758745907739779705644372729494843729434597592529004386621245616882827425677303264719877198763,514544508747762822688679556856233422574102667693858821540183839319779258786288148089981569827905583291935941200966276630884174914454068292171477428135416964516275085023029760650305240429917435760436002995,17414564296838920367606042629424227497295944925938738935205168616926380379084300421202126252311691190727978816441772689381194301565295804608647440544574554990470637350677925354629054973426846467563853513155,589405484754549732441738373227827103711137212991986198129529311465372033437561134495637133040427719464995525296368366542341946234515708831204670234434932941422706189648798835837702453358968066808900155118819,19949290426948846504713760275143657507767121091265330567491539806690491345365056809543663181199357046815775542842933860729633611073616759868260665921738835251814530874782750266394993646440891692513116349724363,675230860571999549337565809210284373278508168385970771529591712467144972725402569909298928861792605954492841678422148705581628059913970422047253272578968675134939979065831070989812891108220079278686719281220547,22855382624194866037236418899891412517343400115720090805215692296667952375386657605087276406327683972997002388717007267628104918512522993069306651610334048425971420866118749370808541150762650360013858627391428387,773634680001455546110856170013466854111926319829593884786215302154990613965891890339309925896016561345792272467824141571966899733006422472072998139121714229652515271436369439954874286960724259591811459833202738451,26187523134115026875720100389296774625226604393168493560588660937276087437451420667800568383705102295589794211601719599406370882714037813338347120845392114033447398838510561179100372040446771474022531408918494905195,886469550606067540811000985462665902928050384361410098703806710616257993091560445125877659475838822709413685968963208946818294869314475062216543764323007048859708479665992866658446910972515657222208577596261869421907,30008478257306914247032098833577251262437115755933668471242363671320505551292813110518298611208652563033916801398811362742376824481465460438233467721743250040963428863785676777191877957833301761297897394316540718035843,1015862022298423230172951844695753844207366846457221609623227259786870714336389588659995356807235698412250462039674352066058274849799581641226517343456131487028809585085487579288454783105078142580494342456573337949301187,34390297418715930370819534673152622033641955113130227143732901029608869650497145436153882744620714163572062094182335343824243702059365766416822817225653334470799503145574604263928770107809329972534615029778586939475472267,1164253227225057946130620416725530947469806905797300802176353607384220270941471511828502538119098040434878823474079512218957805951805207548057384299143112222335348814758619234435564844920530144342828421361947763203083591267,39415690583278509937708650063683519599580982435692864488176514976113173823902195263546708602166135077945984289604516948592481250565223941643172212775499871815720068229498565085517018633035840150794552552371228900396023362787,1334445565252062288832175032535986585109351518892163893473185850569416160556840390284704416749850475572035704301394515343147847493663241520217568559201182157309519716197199319151313728301723250088091708221668413083797172138483,45179610607694910561653557773277273248423444236841392123273261034605703039936467145813067564582641011979068448843929914393538950956965746009525262394314716219140483234931874178615812942464728497964064744638260384029706421078315,1529656336515225925322853636847341056550503301113922108064656181905643943505323623545435684556081990059229482369023236966937926591830220655953316628151411060802792822510842555908434895537163509293117421840584289098353897520869363,51791071090552378069344853473205760330142243438326163976207501833046925517650267835703742662579063148927771691464527860370795278187981376376147548156819319162871762837596530990644481105205114875135747241558766860939030443082899779,1753579357190386567052453875552053839091163317894117726395020650056312037563161987933663537628826524105121450084249285609624655891545713961046011497907858483521487178512112875239876594423447043075015736249861447025278060759751054499,59375234850009101360723217017179162288357185016615093843846112345013567662595776540707051913152507903123917864929478635046786862665427494612630309071296375051581174506973468646145569415320444250116552649882036808775359899856294819403,2010455749492942429337448925051787907133139562815539065949556244453754838742306159049373934437614211658193114090512996957082482684168171616940496242169057877837425149246271377611133310798553231484040504332920158243851617365012929633027,68075813408907686949431597157895948403258535283014808252403091440580757194385501943268825251965072411522038092933849098761858571671161368437567055342708647496510809791978207587094960051694102668007227234646845773785385046728756649395875,2305155274952365566779395866815959473938581846502956265901579086213672152274229557311905793164081422870550599032549793861449362871727915003704221467626176767160227201340608776095863655512994905809380111397895943469601962220666498151706835,78057823904018467964184332253016351115550512806042078518328411236810958684664533853508290617331029227539577572902506165928537263926088816809038052659654847615112851226583007982629921188816024065462756623975145649112590408813013913209173227,2643269784704328425149882574093396225865404295319451095936770845264785909572960643669193117383762221822077265782321931501547783742577600163832057735749413845148882451583400900446352613285388211781800618841943694382542801635574214775670909075,89510756777012746228065623487628623667681123521252465288030511504894284936178932714541068153663220550935712084809486578685984276641826185900371808574594872474479822998051044870901737158228387742797950630180264268163045131574554600520854199043,3031220595898019409626950578671098088450081905182326220588913641166239404876520142899036874214120818108894158649226672344413556169069781691337248480794300675744533867088715608705070335727289490412452341493356984804758964489713000809659941105027,102652215585333004251163366709794982922215050907399000217672304537599011639420395502191959947761263037242683428070217579126727913820845385953152961052871769374025759875099948796536279491287670942099178593313552349395987968301828533933407063923467,3476381873928131651018216306925607838323307365907073875201803708496884968336185248774145116527415210606273217347137129667093663209532833715058552930935360103582699985012036896592492383026679716086799627171457216589835353487750542190751892395551139,117732099447326074419335851248820744956159985500640716879248977085434212152933024495616066638073245628339710981693238439679088172725068136958671455741057473993588789514758740569220399155983735874979537043225001829641361567674309394694078294126763107,3987222411359371598711635522125854809946781756852558516793904783699400640344468697564191502825464086901481230403653207976828416129061315677978489793769563842358919437655050432189184163020461626502803040893761051237844673924625568295246999759579011507,135037409187229527182238483740962299399232527295904523366779639402621769337361032736612493864779833560812996275859240699451878404650329503589834001558285226707698159699084579165615088344076094145878980709857786207833984432065057670518355551289730586283,4573468552200292928163264128830237664123490614480350698947347501981857261564592804495659272844459470211582237853527711335393992601023695840360497796125306549559203279265798089273516447620294554173291321323457106207229042193203905473319436974175324198707,154897770378196502160623712471270719471731754310751570495882095612312607971557664141749994076946558059312424904587924381735158141532448794833928186895404638752192319040943440666629105841249801988649839413268372584792858061392936185447574276718897153994947,5246291421601112075952015660173637958353828640512799600711388043369240457082005807499939702945760678551046998212721822487039226773829228243440867779610228433344840205787831134094941077688724692421510225869104262539261922142675363071331627071680537972264035,177691780432861392375010193391668962100719809547911380594333611776721155296099485473411549060469642283543823153633849783601883818725590329985120557709395504893709914264312105897891991572683921648202617173090004472511888789656233030553115976417316538644983243,6018522094146869748185529503088779900576298568219750950184691537665292487083688214667113121270833952147294677081059282192217912536129027458887831156845474816235978413334345735535473548465227832008790757865572297447451687149408764837073689671761007863224742467,203854302934010513807895690861998175255344835789765785812977360043936312410210051346992875960860686186357878956932838026201632383167159481686666982960788202737587288238587352953465191397860561796121050159294802284792824752272479904330856613716999594087723959843,6904898877952728340083031058483430428117389062709272619109995525481479064932633252934499931602062007564802249932530022136986455436102308607109515191376690492184705265116912820454244984560870656296653556083135254716635870339960737478501941676056233381868757714067,233884850846788337772930176487586873790366735516966880625187973344892967066178850809746164522987476183960674682527158972026551811075615589310627188117721999078989004449257218595549513341162265958324408293491153294836869769399940025799685881809152084764591644687979,7922351517394149852090417496254001962274740328604693879981817722418649260573310681852819102694785377399659114369247832368339193117627961753330946348398607558399131572182709706599601275913018367351809979755069385688696468974162000750015427589812937946366501845050323,268357221469814596517045293733782123140121631369998138679184050655427479585278769555730172406438375488614819689879906989149157966833455244307191350372192248463586646516174398701386625088187335422314971711040258714612687337924686559476355033680353668296575189712728707,9090327836774424525838612667289625824071319120733106114457972209092369763060893091852329223039430191739197228043817153633972264331892001485827250443267674002148246286534923292153486938619819296736966634611131435949789669037588210891853067353072292303858678918575753539,307930570381203315091577462634741253281927631601442277302447744515082865200077799990526322247824144299194727331425403528671297590901164140197206045957216150186279344660341793792625453876936922039128271322218299630868727789945296336789669391537590406069765997584802922123,10431169174641226729109373036333279582311793689690455297254572402971624968176863841508446623217533783271460880637884651471970417925010178205159941776442600915361743217747025872166308316905847331211528780238030972593291082121403864165885898427088424144458662331387861294307,353362139694849785790286231855771940805896414860941098738965619270570253592816483006917678973916713492873605417646300105328781746562491149173016661923259189204100046121886427046642034695751043036622007840538663965307582328651909691666168928496416905784302057790844160889827,11970541910028093040088712879260229273743981500854425674190415154290535966130357221150866636561890559338804341110645746847246985310842573884660487671392291316048446366317565117444776019581392381235977060325845654660371227672412193724992044461287530680370335029908279195732339,405521888212477708132677188502390741596874875075555437223724346321017202214235628106731687304578778625998587594612958953938237607539467846647254504800762799222446308664422466054206020340814197421979707960139849432006896730790336115530269443290369642492093791865652934878444587,13737933476270448901499982681334325045264870613177150406750771345042722637809995885726308633453959060066599970630904069952626240475821368492591095527312448158322391220143457233437959210963886067350650759879049146310248558029681832029389157032915654306356322725544637401395295859,465409308170538122760654362623871003447642346564143830860725932924114832408730583314883141715169892231898411222781736889258149749139277938710570818934766435560391393982048228453029405909552693159149389232015086273316169154188470878247212769577346553608220236027134408125375000643,15767222516689769858588668408174192229960307303467703753175240547457941808129293537531759597173502230509934294908200685861976926733268193779378463852981321478700860987111346110865679463355017127116818853068150916195541174826529362299489217514632300005976301106857979579229140270115,534172755966034032045593284965467197872995391422584494361505177841200921675677840449271387656323789908744446549628924019922566460065553992573462088798911784026798347964946855466073462851166797977162617667953486047618297702042303896268933986158805627829301069116045991514577962835275,18097334284043178121574241434900337834902037574533256444128890213956375754866906168572268115647096379551343600433470707584576690007070925191122261246702316418030461308439426567935609799574613224334227579863726943042228781003189464672291159676375886539790060104165961937710766156910979,613131673339142651013444586775878306777816727393075155532698506010178795680464886667654111050596481021006650837268766501328685001223554381236392885775051816863699701908993377799405263405908808648910059164482615443901805676725773812078602790640256707065245584014979599115875530724087203,20772994050603883659039878041502567039591805193583301541388571494327068425942936224433556707192288586792813217242006098008003946365423031112350660925911863266523084363837499601949773463313322452945091196308090410217624710991901480510028202205504737887140866725480722212859501205073985619,703802131956573914251356976004794711903116716144938340524006635761003553696500499395607966356543755536920820031553279801437884302747093519960412731425734907192531369127111894976406042538119414936570327695254063669364758702632798340040029774002966826258542287824673352983315977690103930859,23845593210749745979675331937987225351906710042587883349894863245824949626296125988564189217980253726711234747362059622568074080406719717488525983256167786472729526901019206687471329056330897939952802248957150581242684068436426627754390137288492624877203845110088610575515459512966606796563,807926199286395754546995614970992073202476811841108339432447601323295299009967501385553129847315203354612827151969194747302419856437614802293331132425476675763797089016607859349869623808107777455238014492417532936274447609337158027183404519724140791049633337510589838163450108903871281330691,27374184960590940042826279615150456809916661519634384112165829310278971778603675944430664348892990142956660348870850551875103584753170358053094479084560283241772899460228063134093884029028198220722991975124812656057533664132779457780963797590603826651933479001080972377627322108395299100605699,927505698357880369608558833284596514785483995064281936988470371120958432157144795797428339616777735454268310866516154503809888677011940471609998385458850056839379135570054172287087306697126924740796991119385558083544421518526868222731713374327680575400290018737399099574776659426683302087481867,31426628972721157238151280305442489085037001674463777751347345255436313505177421704866834685938269570727204968685886650436458300127754119368199071508458935857117660941642032917389172912764287220180018420625147158688961555099371412554831907454819315300419840097289695115878666206560903126667425827,1064841019926078602514626579757023822842719815789883025594610172104432084259588844106747770384735727771082183571762796096470609513664273355812776633453511257419328949453694138083279049127010863889336179352148391273306452529318337010386580336903969333072694331182345770332970612755751488636847512419,36080907398400545190865148372340291833853919382533214450990662048505490086645699483910158917677298913259044031382780803661546466583659883264066497304004632449749573695251912582290681466172411876076850986411629611983007419278644477437174772594228541000332351729524761235194468026724592532175100969267,1222575744398532364670272109159754962004994778800915713806880107414892220360090301386878017439782374402873223989422241448039255249405534982551259976922606232899678697304576150391989646690819914224591225170602340086988142866285856113047573566853932121549147146855652139862374776643440379098736420698539,41426637881637462099827019880044818391901669899773569000973401022799436571585341479137262511460869679737479526998763542199080568120653352729414790349533172543924266477459529660816055792819489621414446385835174819155038130155165393351774330654601817981044869096019001965627067078323815943367115025173939,1403747944573228266635519099107453861347614303436077300554168559370082545642024897087756578906246166253048947060051676438732087987724131570812222408022329846917049517222646278895172182061174928089495803773929195212592972464115845443717255285131756696795868713546014495856056208802119109238547105282826179][n]
    
  • EgorArh Avatar

    Hello all, if anyone has a desire to refine, fix, translate the task, or otherwise contribute to the improvement of this kata, I would be very grateful to him