/ Vijos / 题库 /

破解谜题

破解谜题

描述

请注意, 这 实际上是一道提交答案题.

王保保是一名侦探, 最擅长侦破高智商的犯罪, 在坏人的"罪恶都市"群中有着极大的名声.

终于有一天, 有着鬼才之称的代号为X的坏人忍不住了, 想尽一切办法把王保保抓了起来, 捆在了一张椅子上, 然后拿出了十张纸, 上面有十个谜题, 然后告诉他:"这里有十个谜题, 每个谜题只有提示的线索以及对应的密文, 你需要根据线索和密文找出相应的答案, 如果不能在规定时间内解出来, 那么, 你就会被嘿嘿嘿!"

王保保还很年轻, 他可不想被坏人干掉, 于是启动了通灵之术, 找到了在考场上的你, 请你帮他尽量多的破解谜题, 来帮助他脱离困境.

格式

输入格式

数据被依次编号为 1 到 10, 其中每一组数据的输入文件中都只有一个整数, 恰好就是这一组数据的编号.

输出格式

对于输入的编号, 输出其对应的结果即可.

数据信息

1.in

Find the sum of the first 5 terms (mod 1000000123) of the hidden sequence inside the following string.
12345678......

2.in

Find the sum of the first 15 terms (mod 1000000123) of the hidden sequence inside the following string.
1234567891929394959697989995591928777......

3.in

Find the sum of the first 500 terms (mod 1000000123) of the hidden sequence inside the following string.
12345678964928458952491873953877846869481176715897692631317459282437346734863266273483483553675125655861678564743196121686592743293294793135474133749962977344782797979459294848824968753787698339468387911379564933421365365731774521924737929389726113829399193532162473561277542926144763968925778899623397251937947329337814434945331929939975661171882989887759349196121686887957213485225554853459592914726896321249263318242554922193593647191937427269656436889594491983992468695399739565975688337811919688636899466822923665566573729565238426276852721265316271785615437556899573935895828957514642133298664258253344598837694229717727842272575167742772499846143371238543373848826637938675681345874696735512954899345726164581273698497312683833812663972324788641424933612515787494122643246132868442175928541567799216254876167594846817238745299693646869936418357811295514486996342741129412536389439873127251397318472873284793527652913163463786924518589768498142658617647154284284467594153615616228537239616579874515137337291135748999763168337788954783754437744779332325729858862676275751958572321556138943926477757311184819742729739981878642372422112453815599488469922236462163965397159142922239846621286143737121512461829881634862556518931631831348719728195766115641711633125115784262496359845439565447244761857454888559456111747246584758145597375526856772565711149875914197116176233956548188328619561193715858876757444729715488665692362547812224168766377923533783839411544655916194772639925682779131139841684517986925539914923195988287356343663129597662241944276453311366781269864522144575885511856738271632947973733114953798146733753671716561128668411665586481557135798198327467868724571835928757489734645176882426462473226299746633161424779682134633815625525119455888224319494514623844953598233984112756622768935712765733288836539349356911748484499369862882221543775253989244769723185631221224895983958487589555116227163665364587871175796811789524735497117831254581292518348744624564544158833177961485316969783166329862284282876544669934276728362899656864845159245537196362591137369649846172336378913714683489763293988142556299939325867892718122713119727172971772787598597937127549664218745184747434744268147945436832834171855144984848729451761429938398263342646651659779163778466351554759722583767813695346894949835452281411715693613292938581257889789318491488366888481196344234514843795313512223927497716414759728875499793513957628532313637554567967569192645114733876436832319534368676215132932495764177242857712227613185835617432969224515759454145699558817468893662841793131613278957827893413164166932931288463733944227818921536914657856812375532449795353937277177748357589334646521235725183358467851467958952584815173885266468881436153249218812646766878462775112372884328869184159489223832243529244925939948795428972898893559323573138789463472156958316758296142544912959516754944118978584596168679597968446396582449828871679788892794261245788334312775682487826842187863593965478485321939374129784745961528591971136445973712866274374932691336277595178941212576465358933795228368879977593457573267981692243648247874475475265736629877453641958392178186346114625696597149395733195113466141583184574984416585112646267592535923869273845524241725496138157957691385733863989824198673516921943483175591564583117767548212889663352126331751484976932421648652391153132114152133167946879787754267749647768971287363411747459811419388353569568338866575574661361583349434818186352351176639724816918485692718148381877749842264243667975163694651222578837638894388686448837288435383298149958445627425157845215783218438597358154564233686443777813173942557525954514245224464793354996533752673439612862296832589784336759754287177495769981825781965165644877339549447426217666222437155444773994343372691378669371486361978287395816483184468672823555551925493158971911574855331547128455377175654365183658429425834951586637392678589523912199894355444378645718555344768863988228311816713266427149948383355751481758873819778848795685771816622941976599422238582993283951587287551617542632229363571169836344216887193787386242842856982497899761737158847862412721211395346689387218544199166386729841462383322959982273372579828924849633427995558373473213641454689719573263846289881522484675561297273321265728751622321814115762481483866846149224621876288516336529249439111595545768471416862814745182242636439288623534286824546985493967981552239287292294874761984278881762346738488126423862937374197862942499295169191118775543714139385953729954332931596866681178488462129131922258164954273863735729564912754794749527317778696373299223283639762245698688847379989185881897894294215635261795171814252132356326771783637217971221964218852386171142113738689111751382886615784658143646331315587534432581451634596282325364845484925631525639192636133328743157359725436966283934363943515241841931366929334196965791742511127987146187315429441654562927992585825697945655682928223216759463286413143648859649369655942849759897965721353897312967937683232412346215732757254822344781164438695748888898386534754462488482815915844217716552178717957222675486956518819514244324454835791864194928385438224997382618569592195557253777642932623612316759546169321498576881165793673881518647545585584185472349658522711662677861614946588622374952851967349437597348919259698773134535572129127648185592366276921554361528684493859278629378672517431497165331656379549186285727697259536774278518352667143211518956878229118221215385879289273292413453654167267566372159452711932179624679316752979647615275731635796799966854396799453253439863656827998876733967981293491928255251288839181741658692571445328676211975741521838331221697881566736116637689655542962662768521497538555247467347895998166552683117865896332936899626739577264853469754644373596271584674444362981543937473766542552566496761456167741714474652657343853296489569596737537984372329682998456523612969166856661346335751158333369557425629149818447344683936761734455978167748992821653195986889477677821148556277766774168141184462112753347712993829112224193218168526613287948122248397361451379339172548387935283351883599834625281412439958419259261635145752125358927656556514841839125117163883613667993991989955661461622148839131296545523477246696584253219575971527761671912143652992396581676944999723412111997912844923328188764569775194412712189194752314514991945275751464515661861358333564144499331844648255521137236668626312567364776116674627661656468858528198478938392371371116724795596651497944187695119814562852131738664599755543231262799192968461531359637536477653923472549865526417737982257974647182869486631582342778984337647835549534427957781537781916921127298529945631582487555963757551446962264916739841762821761519125679353243587512641377634442399646345745199263473185684319932138488471178211155476383843973976258529151452996453988318895823667832913764565566673172793271346598371774848782134312466883981819327289467628162611247668811259222582987548743252281787672971989239389431916567572999833479169487173422874637825667118468728145715693776245651741518711276998923191177716152448143569386943842921563275926448594251555119828112856553256598223431566378285115931399467874765858191841253316637169937216335349858278497392788458764723686137986728648173513569311489869228714936813499425588435283136745419837647126962955845441297577356349163679698775233858897932393554686155571537538163129693885449938922595668127726763187771396198958876217532581483686798882385675258512596464521437541667759432457373867185613374274688947558144146182284986936317886545392459836787647683372856451519176921389123434662911823172783369643612296435212949625342618572819965859988312196974816561335732933218189939794322991885691756959499787152568639167169788698751846891442818178778161884685213839861187976939558476782935345894695659347469771389775955194875292612543737187216939278783668475842863826318561261968444647263993224431597797668279416552575131169762655677682467924324644649467237717948326513942951618366362191151228361511357762586191289179411972623879263289949639841635319618471272718515672258729782363137494115362797918992331276197971498639678419774397945217854655412785636981287761567581329921244761841482524573995947611598144385522672459247848551562767922968561588713667896488752379685414627127521221148255259132766177746892479756773127464364342128462514597975998848879277468237163111276896281638124811347846332928938725726247864136141639186556257581524772583719572822887379982357466112834548613359189652266583548951187679239821315458443987557524277987972396958646889954615691355276764235271947168583214817992499228864668366324581942674974998236225117741219169233841653639689467739913546953527281569459142854464487863331967738833148682548577969184337549242974621824142287967188426251569415181629546885818999532769263615325961633798785734376737378977643566764719395581561293261874737378488178869413932579629335386343727363326991683398912825127865421565681541237779593919381422492382534226773516322528465238526314738478538976419265557193912742249697886377219599698151389733332211468722356935655497553293765864418716991144757126125768587719538163854557623782664433325524827418118637467234646233221115536969885254587696621862117777392729229365594249455563483175839653627867211842578522177744573963384536416126177172391114199964633795129487429338371492995513219836725664912451948778555998915978565435329675486662326225386457815388584156136999973632694951785546695778922728938985929589784124813344353728368522227299768549154513783249185878928411948469421148434346233675892621776379865233946238134836971549319493835667424975348474523917325189237397582735867363472571532945226214817544666922381376878125125229265951554696474872719438963542349515249129752242613721666373576171314529125926482799693983595147827236145633974563211846719421492294125856566126835416946486564184698362248514557973142412468556611527716283988157977483838975733235942861217717698195398858742635416233158841916581477323591984637274657597862313466853441849521618935122861179212391749366845877331171685966493257928617486585452174313436467771984782147775782884948661511535956149379411289759638115772593112394648462826419138625667666882836398863217351136369659785494385927676626648617497314391662223613417547898797795268352375282976729784373445157147811754797169992972751165958359554598169179964427514634262599454282289643893692254195512617127642146263822875167348994439938249818125889816141877646294188711564258997749271561711765155424529256862439615333542893295129731226972287357466717189712443628153367378751956386657542566683579771328797629119285448876362332925283649965687392114728816522254495892458351424933728856332583153459475959441997714357114239985441934755976685456815671466878588412681691628658772486863117589777584428973181157497473958126616958453425985895286656843292952168726846414693477186767827425377962783916875284541571925157561876994638639647162119448729418921562153685794675627719676421586423548474532964878433746795951291873479656277595544514492389641896522699482159684463213136141151246724822542877878258732791515194979448298182627674666939827792585112475827512173467454416393389173669347143564622785282727292696655443925381196743244122515388975466488856589664551734392769812365894411943528871449784672669849578573914247791242651187624628284952917151395684226343151743339299867434984726327685641552373474849577153479954875931277211995281334165747563621824654514786398618453772228153971628525482762691482978141317932164624443666677595629842668929647367825131168281461473213178396673254537456715482119115369371677634112695955233136379389748442756132689912122574275761219245872329552499229978471658818766584414992195487155678474558453294856542381217982422276348747186377256672919841122888953912897143264431242582413418626634158753564417195544418256894894289143559839316939819992558576954922249662591819729555962951241575737666496455339177552292454871195755442788943888498194418933171625213931115186758945473826565478372169112949296133539959326316126881529413997641874357494531143411725132378927666327227256718456321875548348692874279754663753785258288399286419731357617232546286792324872549787814845231889953846349962761416352387283861726235672821578884263238362598467757335364761144619284175537927151548875517253934712929639464465125587578551253336275273483266872372996134364464696418618596736995794729529898797769353363491627286941379441612553821125347726713364251669891433738498452254623332643272356661784472647256967779363173587322219154753996352733345794872137331254666336462693383252135187582579961394778414546613447829188222425556957953536499726325935357412447445341121587198222626818915983618228418737554184449488616269688443641815928389672389854659742481879185287315842244947237948793429639197678874914773683795518283412188659335819913625283312782976452472646696382449391172271782681923354323932823356185468879252279591684136166188413166456817757625979285865958781752861515123845215869338182457178521255687818196595952914454741667747655127727113366799594511861629477632369815621387513295285252138535274293366384212918677737978875647837777688919218386998826496692467423172458311769887498219625686196554995417575586554661673331925518132632328458773111439265757897188418692618899641646636535483378352275525613158163963529965291882586832777467413351368685362996431911925187966498497457837668859791713323257533997461872985212487687792433562489974841787658777816597268157644739848431126421935334158147735912988816941791843982573453235513317117482553568893875852634195598133446913912464163172678648451364661847957358291739151481895856792425699727183811336518649548434424182786214172983283282939882581335945744996912329326466538514789169945729263193542454321454579763397767161979237678778673183553838464535552236821896389882446422997292783488323912673362446667858629877477581513249286199131238211374895998719648215279755616715588431125559554176326322271449264681484875449948842581643673242555656698235917666326211153965581838333677672273313767936397847933673911141818478996887279317245369382562175121326385175197744649143274984669683662849798818913855629429891452826295671168952356799477531976225868675251829468857486179624229162527457712115962797449222581777193313775618584395653673198471915157916535452917791327756354363735735844276675471766741673421196297936682449863725129978968985393847119289557287267842381136514771351581733828369395278665264175918596288479779256932813754452666292695218778546668759361917522396677336432486783155165552924946768655567283631644618242429321591982168349768331677993562422169634677728334372844575928443894458166262284536989922495165561326638157647973856567979988768132591567173616863964818173365248694519712824261341543183751911171894594531678497939649651896162841932349235999562111866375357311393419892414564266722512618352977199219944734486526153792721374567154185537678832728118263919755876491773527346151574152867326972467712813953766581963894582721147913783159145119427117559942963872155754116295863152368293784224389741334274421715247413454835534367395632979729628299649412711666744622353462438152484685269283232977412818491952847559626466539887411664137949832822855731795865183635914396281157926991246663734936219828759377592674734523534856776878348488862921395784668969799744766362483625735232341589673459385947349795728844997638928224632462921615924566541676396994154356945492941841615148854184569764422662233465382713278758161793737921546522814995436885276532864398495713817421431794716744689466768298874528527719461575381688611674688368948532642718689337689856191741591237346453454148999864786723994958916946799659759252163655494176722673542374923741344586596968488489228794382536154697572125395916866611539639493954589664845416967565538112969334199232832668882249822266648436212631926311526655218535718432146369647667723158416718882211913617366848567118899876477846652892964822557471368178141445517346996139637122825887895851959368153712692657683338667854446339985554562531743631674929272564851648461359937881577732228444357211113971955921627657676134531477677993888252519277647448761334867594769784772269172395859268631878158345776798925741877336287128956286867355681569147712167648787299994468877769415182355952962271429616826623528232757718316445135966633482575566493361515185534948724261157125799548942859118323796662999316938397468293325376193422314948146155344782153314263686113426863266572995658178731419196977329725629569641319478676595481698568379134179766549678368184334141516592888432719727811148654444915544736752368366612551545143781831216274815884494227626478416153388799198339382681294113324322516564878578993234128454942594719177799435219833665737932181561871741628986782911865228163346911757959218195479184495384936541168444486154863396925788444666317796987668311248123381395764775244389928846357247376436686524423699371872516974574611637282966686484846726655657463199215581593227781695346175445931212266923193236232418343428944885548992798553679686335888367243187251633914715959727932473598416298924191586129158915272844938282618544586922519842771167357525145118638216629683223756262655275469217741352599544535813426337622359629698841285527396992911524196334934755475666642932931232247336873273941534736185583718123468741752586476752429444988746687981989725382711314529944871151628114674715157113198491998181467683525255669511533878541797447235333693556136237945221967322275566224111485348434891317875349425364655233353511259588618733959183968369467267318161226955165511248517737299393696519172849673398536871548517776756356378942394568124452958432294471746219841994744865127757724913674323495784679635252636841472315219335269446783495228117633469971491497592491939231324584794246129161549692852625185675754763532553695645346478635217129682399121985852999215352478927858431418227778977662462657211687251621623619984958854872918739151986311925357371914671634976879745123865933166757725224144527869458476588571879144446666539135893521733599749342522783891719328775118884463932856168279385141267813947999725824382368277221344881782758575772434912824821511756294464317769289794176486927144127351683576959984196636518321858383114676623739395833298523296338284346839822339523361916354164391516856635711745246236998241746122183646754928323535688756435487788836336683822421756895252848766486315784883355456563291296922349395931553575377941274931794983321496676858562164156171218567777532864145121857393574753623812219518444684981381168444376241996543528148113141327128215383569862625765746912215562837992158439995541332214233377291665746558245512727339536182764554621573822722824584596436359161937663869568556311111484162758167587499613954168848573824896577957335689945398183361715264938559293321447341385338783426241863892171214221421789476357274982452762799366762284212942794851957126376355415843274359226989378886474389264219933293761368684594967866391243955447871663936546349374273943238185165667681259453452398765395259315478269198661838216948391316127192275562192919921118423231995964787166594472565647165184445322136164259358321131258968665181487766127448578287734616787967575568921161889963988446447513265468199889717737515949648792886699355443292841378327593179923672835618225822649233569844378732441981838816183468163138347811127187711439894348184798495422597249928194213393755912562776678362222267965198815748477139939478685642375748218638458813571498713463269254943182148159335625968797542263559339668447148942763793937786423159343679535323475542917399531142722656189922722898796239123177245839117436668278843261458376146654149554456812125311865492963629399815968869765777153744994796663415618361818753667424428725137765488126992215574312482888297239647529478867222653225288515541688185429161821958157942584789917779985353969817187374569496193483625318738476219717974668926994677958443745115623232941938199411186943779384288734473594357597332939769768257792768945816794667221185498251289929952275374847413514397675542798441865548324229543993918513945496142485541844453685825288147822555369668161535646935815963417691492666667614525242176341555568553161979527951919485852584917876932335515542953344296252174223358749756333541517274889335341617574919995556772947198848366813957774164934169298968166795369194447234855167828591526942469487411375352768638762659688129575195426515776225656188965813797218844567365317124342188252342561496341275413322769919785611498355599732476291598862761837889986429986188884121776121423353845378843485133588252687347761958237189641496696623234632721761578799534635725955851665825448514189882662273512783594257968566914798724243677654227631219947329381932112613744728352315213224216137452848339696448728116548579727665856471715272587396969191324474214191715298689142752967233356215613554423939455843647792692967996533989217798564157454496738158219635439975875346321431114975531229822747696766495332595594246361498694937475459479851473277485929525181793447712251959171527833973225593731226141963426247398212583614946158818689924638723947818922222185545749411782846884311358412829816636937176265292577293777445993883954348882196618563472565384612323261457332239884288142813296774275911333889627818535249449611742982361519252115613183777242315721483425928929371357231178834576414624227527962127324262929161542773553727129181192599543147747811977289543771974395641268915416549374484948237467421777597237297214546876483572225536632146577118993828888289786746917978517393637412945911815923159786373563473971362647365128663677995226762492369184989912387722493349257157521661269542784957541423733579813746916514724699116184437917719488783855998274768466945991585937761432317622631936976585962715596756975231922833386938172224954969522626144346855327254885767733332111686383463682798189259629115533477388534486867158392239671896298188278618544114727531316316994922699613198665694926173727236146329917121246955555168821474191892779286111359175753336184853795752969545649383836454955451266757893611141474199876416342826897266763137149185767149744346285669274728853642558261152459542725913492289162214258643993916165135586327365845592165944458334896999864566437212127443882724155549683941425298466751934423478845446814442971597545836222758258893553775551836912179445432167241742722858225492563982643957711534919297485848978217172569759276567756382812789573926846261654231688942699259777959429486979891241882655286928878947125598579614544986135423496848429227914168793649797442651866898494235711961681342372265797963812585524998225669352697588897169469799754127465512917187359334839424289762665512374664395161793532625883471235958266658193186581716549852716327476868278184729344293117767484329861288266942877492994674272666981622476378165521168339618828812553288997581473984635262732675521694485887657183586248863639686529618841856683236189297374171217488977497526617297377411419945387244362649879671116446333352112413557991555887731975881524446399789548953833785795146349135726642344946298677219282975564198657367894635592843396866682557753847758957483998678749962622218179732662476989557915461677741977953231878757112866713865466774881654793752936299336316767773636646638598317136617214823696266697747965586174412816869841521435146487656812172267815473591278147883274719246591581421333926137413149964289712923818551194521641978938843797459678628659444429153161219184757623738973945684234611423828466863441976176583276756122413813384559267721963225334641754561954821865245845481471392162952759117878557749485927685122128717555217617397422712467363928842371395558186487558781968262897174544269924182714561766799863937787996762423492285652874156895325783618672958165331328159432846256622957292396174819227812195558823993928992363142348839744246212426562153528134461634163727926293131581438792696417626666569673717356263435871957448283417237825644711398482342783394165847981464971149883878957544563893442697213255479189936121938166115664563245186222495117931352467594819474546497147244998578182363391463835758516182491395628287615625215184864776474354894351536193161983816288529512868763671234513238475714159148661832724982293238363592624295961223948123757329522622637583758398878636431818254855389546381539767239522748259874421911484329387656279587464674132395179295154525116943845597895544843731833543784413728345768251221785553217561377825249942282175777281375443615372111335524664859238267445134188129985468986229973949799734542738727448564762677797828157888211454697876982199285285889529666874273639432132258442896715192763535313828887958794914537676547138714396997135349953629895964921222465967174372666521973363163422174672922835585742552829829478766399214156375165926622468389476427195971467816458347289588733125141922263945986492946193296384258676612283889511436922125857838874661635944149897442963534638248593857765227329966177452553141612323488482293439434758226671977112394677761654846913949877255276973732934664662617824967695943551878163432125566265597928748632996557886354684342864681764626478144849131879296954416228419754359862683246612496583739669383221752316916727962668767476152423631745259123974935793174559984339979178697571626251324131935387735144711245821372139514898174298739114187486222873183532897417969955212231212277353865884525695578111759996664978733563837414638839313254446895851998738492969553288962465493192388432527698642438653854925622653373619259632749913362742639823951473183156442382529119453948591225419351769933617642336758864953136427687667141342777518467434681388525522977347655799918924198176159356622343947589387431443739111815859756563993274312824727117724582715612469978915154112911648122268944252825713137642633869999394727345543558917743192337839972899172939541931179157317483949388782962792141116263525336163765125642246945218384655773878179513532641789136646599524491337743299191411396264699737289257786886162167617664957795179311364466628263456992273638258993574982661777284626446596246946214321224212358725265691372631434279314832222994136493894883348152541633886369342765155354748432782544137613242235969676751554153963537237855211557467962565935183326856865542277499734784378162871561699753243748796458328524117264273855135944616623548257518779858243253474587471285638789823649625638316638669349195479731233899742389954894351339592718672922229515412597532957516871612787218616854852657688685685624624473798161161675929636185167946136148425733388992494742818323515316775276966122118638116346634651897135263414466636473434761315188691515258552494599616349186617838671114266931673726732653235841395866519398355391439315815447678467219966786188526218258558911912198794858433454955339345532627917659738255939426725368459647431558852318192575928224582894446269785563313695717923917356413633751688467514167427174985995443193643793634739247132678732875966535768622734329984184948642354312321922496555456167193819622727959256286478692574254582496263991378657762173366111871582472735698334254597816736539282369476779241673834196766612753612465521161613399479847462414159966568225541573612335222342666735654618343719484673646558724534859118916761762759618398789111651277315371142459862358672835345165858433215299521244317322311211381132532571518241331682696621374988773871586583857246644532756457744525643525413181133852333586555513432329397585932381915876311773475541611265238237754435765518268234311378936986983458996164737198986229242984528169195938234948838184585149813729212866276716767758423476588619359736153695442315112645198658421185381131446423179396283447563355128693883578837927444169696165789424698522913956291642293993119237756393892234362926965929777717631472911948281953283565212141132128964516166683722232978898556216452437415272178973288544344716256751288187158418824878265334565715763237287316365848641163521471679956183474742434367566951559424974741379849672851875138164436327288691876574229556748683668426856871933863389788356375856315897496975851415811153432435297439564941751197147112213551197946873287596584973722729354228625674743491464768946626686443146748552877333648988713834185928795653898223594994492391812681513628457896879956559725393376181857929916363811223356747221557967157991388213855799912125956314881262839718275993963321599515794465269782248148787998616761146324547593589538991374588719975776468263456526471615717745338386682181392612543472769929571194454779776839443935367648419777123386783125629891678591581234332459295739223761411775698941294333457785958878963548467978977199214839481225631938973199549899827976816588868599342931998621474426494841776781658237633766922444531974591135582114484476981987386264631993267189461472161584594799568511527482684482554247344925413937368564623912619981746462529148373587377788998976875523734993332191552455358134159967563996746324254527464582592698219832895927752612417195928724935134863383471271177117513297147826843153518129617539864717474133443752196665246595228469277547773171344458517898272568459366187271298955937512895936624883996219444826526255748775487282548644957965634167458176958693876686647826597846833217286875728921355932295232326849684625689972495923148621298491779436176868525686332571143329551899121897364636294638736183915256941812763773679699199393967383523988176847616824172511314685184855887995271456855913395224149267242859571695537949656453215419241735622567315183285991375411524949734645496914329855848313241628421651683419529746496626259333788368133545135239683681463362142474656549438664966845537323977815285313154987921913376373971197734616241387512878497515778186975117358257432414669134497779463514888227791853987657586963283436249868449877348932698416537611926228989427237443561367145888546848673899651696439859242387769673633749888783537734912489441313112887831241996331756259196543489228655178377645252378847586837925157243461865116885251821824455752845822628251836386733654833741671624111563395871181218943621511635198239393931731559375213334731773191727264711438949393924812557932917541415943293586991682615543192654159916561399527141958243161782772267782425779322988725946579914268599237525914125623694843526629645395854673632249677146597667394888843159192421829619644977938965654554899569784913617337435732274935424893243149989663453221972381423463866672937335113712585935678459152818767477936153994778521999449188533163398757511919213399459359161546698741942641279899123975297614465713966776289471442284337633222247194981717386226387718566475538914182654153814979672879592477191879753929529472985473258575483178495567298539825245853228368769152749184674678133238639965965751859366873531882959312655472348533358999215487665237847323446793779857587566574445428143845454348656847564541875517946727552183615593266574258671227822593324525621737572964738932384764732444892535598418449941695617184364765216193872864182181485753166369213838832997728277535954532731642873891959938137799723283516162449989818273991954565285842746554987919463755979523231452344657938791615517153969832518493589315246944797274741959632854784961927487785193792468971716695718692864489284528217649188291226539158386296467241695916126988273793361292168154255786624414848797557223878245518859611799775486466847469919859775938725699353451633854279246432329877729559849613677227872875822721863495197357591387767147913152339979825423962839489349123427492381522566746599932894716131799665284659399224298186389677729669731678533193851596994958498983534263466556635526435295971226486353571378622846991173656158817127554875623977679669884354524121674186353699253527727453568926797387474657157954446222843678622511734292895197958146248461457922732863349863652915673333871998651973589952495445776339876589176698436812824671426451366269156522846633437352635345475852548579851438987764662454851287663894365332798349534264342266632262721113851142159684577182924865188432354927476462575194741649884416331279343546879848397749893725737586379216454281712928759432919365735961964975338712568698496765761894991797429681454673343891276926274741688856424731287338475588793125125287583356937381246882324598412247524597634472379676658871492155283341617387348195497861751197476915885579578467885494857488815798519484861128552487371666729389975463123662987699823253143368641454968338865915754863338451134124132359917952957215479732358758889561479868321359583934341816166153391995961138493554991472395652173273252242914644852381124416719746154928983314847736272515148274136226539712477783419564795472938394299666817693468836985857574521843466478479134863966858255929556678158481432923583914447187698394811486222641655584726635664149351444375638966261472756544874256625483693955215787211895458624719913353636884596676217837284828452133189975113654847336662752931526867182755447462381677884995464149251125646976275834394462268186576613784633911372632743586676517668159894263147248383877912158989292952487379877837674843418293674811829147178588691495938938884738917518913825666369269375848969129671138392694855648851464414193845585381475671714315198975219461644765761348113454842471498547888978564224756736189193927539547527984278288647444973962471635323629171148439425755281619944821267477473749551956835974598876644287883691455156843178337868613274962355519531224968654756976754195375755823525664499879796523772363942162571558348689444765519363777916298271438924623781273476247423189378296444415739921461311228484428375238977848382362971439751396647194277166961858378319697627679487165818586854661936591313563888438421737831149871981535229829271127824625547336641245222771243963592639174732816227382394342631841119881345645778761591245856639229156658323596251139918796186216873827167378823894758481313164924928985418857939237828439599926777342928719689395937639192556264839818733878958948851576546897721396167496612943229674672918459917829149277786716621143621896458789971156696479944429285545157549416654548363523717963898318826548612658758333847267737141173166856626199825221357489317734871778897625348614699295588961935539318711562549267835266853639422846372597913649618485241166442822787183853438811915241847548884149124232226231368344769847681289388821688625716792717231383824246542432185448185914848354284639335925556331621634933517816994759357326693188587246897361822555351977529591646198469742844618957442577226567113953388624444847557748553188381854528859736958195997579419691563645328322386594633277563934461551259699511266629317279848216176146778559964488838852251374962646712273355523794878677734449447228247178785562973456255213398386474946272929299779186229984432776886888853517329181597616176218664867913937938811641883538825962266161553176475312871771734358294928391639669845678151724874382739581968468437796491133698362945529964255643922255629876277138295868661326934246763236469673827888137888664325394751376462388715418716833522339961865991563773295863148692635621448139682558784297136323647337235389549769727843475396754873665945784527561589345913317773732521788841256761167978767647597113778781283785193944972184352296755982343461426234346794966755287241529856752679557838777844552887785971972267872225794486681492833223814426222585993549761313416174595889763668782986974963513646823684615727342188425841842934686756849878429246715842972427937272875917752834665843846148348158524745491567712724272955923544315372526443894984579845188434243666266174862114447486631686173653238694814684577911818716878736116685185981865743316757789519914547176737282299469688127465834865684748957877799734236442493882871475758373135691625438132457913862956511178179178267323573212228721995226224873737713814857446733187366381234889677625493574394124723739726318318678754532699945851434773668314994975684135675641517818793574269814828224312324792865324356766459735871228428262829133485245798754952915418987154741376889576112742477492647327847257374355442312265983197812963636434693786379436541798582541999132735629428867534396691189473565746679512917388877961383983974143232482385853646136393276376757525259288884485163122632478533938425645814571318734993577944238457624392732798546437344128279167783321588219268191265726946863832534166576353176772335455639523463934252135479752127491425293397122823737427855922972124499591236383457655331353133187528835678538693955525994695731534238385387747293281714348552681264294254933542877737589182745748829984649985826519669643656556397979738764238479385661189736248478249165881977198432793938519119769374599496139354516876626213192535512752495525176818292686114876831157244527165338573155988164393562991228675562311517682946687462931156751942588111332334657215573727893866848977678949961251777144551378934257634342372458135955164731297784469428138168795671727424495851397129538763179499478354733495274827879464217775139669227635986392992875434181986189672945585732799336579132681217775292934845255395468193712285966561925682528783564239222774865945763867352963844892211929759845356116368115148954346482139929175263272938578783934955158422688955752322939323642215794939652226441545883224687389234912558598489984527394321835452123465985597841373211137734782548446499481975551248324311347818937819891868665312958691925761273593131728816658439931838151134548532415111874146576855895899938685475882633152383323662529562631142822157954416998959888457585225155736688113628692414926357943525438839968138357423488532225968476816993728816876544858211694394883558594951277818391384287853838313291737479548169573977833916771786553688868259482564356593178236585441443362641324213465736739313395428898172175719595825764766623373914324665541998384863874334827722383721792171723294982973288465934288797328817225641387322828848667415917999178119346292548482336199946596776318362568358463453112817162615531798271121588758183169151897524833458738556791417484447644819929411754153464586192538768385469959653536654469189677721934134376995847647922921957529574618962796423151574833643478639815392783946284138126166561599164388324981627775936731118336845493419283625616517296424196313694748458693567194895758527976979941148432455495561774774357815652213994221276611629221583558134663427943673144611543488557928934187686495391642138251251827717341973925883929618186511126669974812215127356841516852744724428917326363274859567327172918973436259734617298856661916481438353457717365731454314872713726637843521718548497532112367524396396212375278555212163266694861226681312271681639463353754198942562994798339352543917424248469399169974476489637121875975596374694534689881734471564776294178555136539875342391849782691946812318119561184236479229573273222727885111711745884229474958175421155347591872147471591151114814791372774553958967629465139892647583231959863676763415966969689137663277555414737559471316169697941531739689742784462378549559977717796171477359179619614918126593763678643768428151665852913767987614898319376628614337832752679711746982683491336293183681239137438656461224294164817265191278831672323385228682547515988889724781471899932618379297827298153825827445331495858224451575263616967811287752743386464577855382266665631735428781331947998255929131853547149499648234567195584993353612384533588188361128925844136119483147191975854114963161273274318496245738577716689792346886589116319692374135273761127586123966488346439767989916771775594952346193871574621581417428841459389222184244388711498453749472494381773253345544829741317612659554772263326214724776855915525181421881389825371749424778591474793437216949383753565429283162977224326685452211765591711245944792224624587919915223417547785716195814935192727365261558359253655916479726778752784365853732325932942587244673979712438214512931162865711576347112875925526715699374638642655141627717712447127114765534353553283988797129942734755469186993939923358571633746837645426737523168332466371563453854636167244391216422526898274372447541774747871966526151944958863251378993772896881166619999987311419928628752156262579686141122852693557524277767755239244153459253468922532395742836863549167947647356239886841955212813399282887621182599427233558916763768856855361469926521161667766365229416369818358238834682827511568415359936913787174257575966522874979725497865458112276862441763963564622389712691489154373167445876195973655675161159365644749761671866829213647871429322598924885387938685271919561927737567696653428515449186611384872611153523358269283485363278492933515683669841339729659812877735557486498294364514552866399388334155979584981625895426819131281172895682293978666525932694296535877175419451667577432145562534756941478487266457467196954423886949141757489769737231152163292319499967566892952285856781689577391834311623988156471573833529665681644464258134787748371183386931928892197313522454185154475975816293131746144511782156196571554398968396669358428576553248164611893428114141769391211596284615494914747181165887557748159917737191897243451225161191487987997257665378222961266819138368444999175877443285425525646391618586615121852575312938489723831252216518241269592929872645249559542931542721639942648849994681327431315598999379555491462743555886531294525437791364713741446644195335589466536154564199656571884221998987732399534561993646299346894184714665579895588755748632933227394622564123931683282194727373628797813351917943815332364227371462549727973487537662467416834437447233247322975274537189765388737813132936251114567645867644851642612711364328388233191255932115783649125948477492723454279787822275477124458571461879796683968679746982659629279558544336672397539886327721863219869862837817482619419915141661479492967459425753569199679941443866936146671821884941415398399937517419974273474764173762466249666943224559291841164133474626155935423394894554834412693298878469561157249565233691681984824626264765964883899277453946372647994577944246767332395152512771192998456783767366872926714726466193122993118332573971442413574166177649914748543931338188145215982535768229556915584598261669263254375323439421771996625857185456465464533351773399331455532789786791781425366536127446987236511964899484377872817316216623888959229363627335758713546723343928776164161471957571433472251745733849866667919168127631386441761596112112955514786811812189716921228824662326438992496287812463241671743887945859994347189991277639169389575767857624131811767619532951112524953588695586164721411178435925333653268326567777237392665862533627512268582643595535922332597596573376491981716438228533968285198612437397188521743849857797923317975972526286112528786914511837725886636591916693943794372498235566655231557524581358841771311521295537344742399786649814137859477452274721859598537364291621588447136123912368334417312952472164888695911324443586561611734772459838323819647868145251759135734345858549796266831166448624373447275323188281615518844156128254176462952316823928652621263483339987438915638975742773877919713722798339942514732711425749646347381247698759763976899168153525531965197146722521864481951655476379161191623465691689981293186552215726838556783265813477713755766887934438276396785513288746126733214155598321713996918551216251576542541795973183588688646455143986228214263138375912142147143428828744563785217691382126349657845617458233612126133878566173251321131794721477158858777741539735821898731651936687284123852896586131886276625172879954881955982487966988279248853795237138485943677878868438363315364222218566292479546448867137429255668161689691334664798825336418653295191855868835644352224645919356341562245624683667456675353611331782261592621382383343122252995237135912313563762115722596567116277826221992937839311927852597663535688112328536296896956816658926593585487224614844944419142421671474226698774123588666259248154713627833468237326459131864947438665775482756928414982454474934168562339346856623846282654167545827825484466772638994994922612737926528548794936224418939234246192992369621136278272148829854296669213674634398897651222322214937872735168415338746235551517137577654942111698127435911891339135124489392254483967631597729564263893978827718528667452972721741997679285516363838366382662916611728822113564887585942578128615291342482116638625385582556297321694687677613331285143172183637541276126641361536474984124769194327224462555839595139593654478739215447877745621181991754236118693314926745167571968782192421465896413139385397792561319346246131824184426639914911843639487538653345737283645436694816552962188448567888782833191516736356285694561728723563249991859912388571678181926155976741629211519847326887848595278835623595972681257918134565467261238471937773926845958833942893477163327274915774154117687212324373664286772494148964538269166237662746687126197847815287613684972527753873614346316576988915676372611771288688235165868591859462339133888569987383436229167713374164544322261856443253737672531368214616818147297139241775767777443517888785535281965542292368473883672796411225815478539988547996682251383174714172176931446975835545692925263223161362491128213121949258258146477353579748161781482838192257383929645376428885352623329586478586256331845529244338134291761589985631495131938198521569568591122415322141799313166884278665929829951989977438269572435273268222118986898357695125385337655294228948187185643328331278293565395566725446917944535955698247763556136119467411433378947333523316455914358666563467928125369443725656442346781295718753985424536245667941194539261837325874464382768922433623913215698421199921926499223879577796459646516876336592186262758137913458463496567479115228793677188298611433857312698416222535499593439755324934838559443126626871241261433146843871851356585571361824167266716197924517332514554235838351352678399582628931537873547727925368318635285896545918189773429926367441562618746678233472255687218247979566326176997126429845261119464173236217264644577785132296287698762482279764982893882955313324562127195425571424948841572659845837814233355693643134781467174684116789823731282368812978563122291619116449147986695243728419419718264617975842759981973972715828247794621369144735527664554315365839341784673492189437248753964488831959939424961874324721341857177319225725285447547121382349436875665968119538659452912816876626897685541788688715168315221186747893761325978432156811722921972472369524739132242499354392795819181857499797518841996894755839735646288335172166979413275585471464869438739944368897163621268717496736326717134257829232831926728259625458581686299148822371628122792891865771969528288416231178112699411561613961734275266978846165294287961874851457641567284169897629764575225456647211932157613733837173378682525282846877113875546777917896684223113613476434144411726572824616672152612641222372335655716597225283124986628569832358261123855156319926675625443897196579898388789758657377675487965981149777737757624474451983321531665861748489463134892227931197122279883675943425659567696816216347478753463891575141798892638555221969173872533135153577143296493739973381185925235651684675318237957218482722695297313491633842919889711993184369913443227943687462938544244989845348351418647227984159359876417922462432118996476915162435776643329276593168566921527154498894281185621167855288346341515227997933359764317182753165126148596476475188994615768436442836783542456464889542145481814777316629988424327175766359558517978784261617366187151829294286973968891112621789742981553848246756735643966913771298666473111589629712921683738528891315159484788751727485671325449483432299784579623111265747968333954424916575249639465586472891899991653746935797691746354628748795342222522643868933658598959326824924768443695116742722365856943797614434843219813284457656952948658721886924283654958289764899814777228421974397246155419145227697933413221366321278527171884554762388469277957497252618915866511144499957259918316726427116412238362767838474144976179176173552793367691214417394755416511946187489232875267882556584392515392432691674757315245187762532449735662327684527383127669688671191519575697161579577733784351446686624463552133752393372541276135352618443299984194673619228354538538638899296886286732492759628869491966748176395984832491987411746465452511392641519966469687968664175784881955998434596693762242252162433153277585569263461119267143585968155657482447898289195761293852885343592891523378263175481628859421889173672319381639156785113949771158827274495367572617585866798944423896544521873234663928593779117174776285417559631338575961765873859325649756226814838166696654394413933113694955815459117268178699541189682721218135833748659587347357124942811744252459633838834124366939175173522667163811482884994682731143924578626967695641838659584966893735642947377911921899112473163175359377468799395469437786112162781728436266732448995428136579421898587297125154991223172662175926399951156465126889489368225147499556918425666929179513696387872588295693529417462794597472767699596325163945239298932999499181335929889356362274645877219792213428511622459855737588225179499991879817587395276597267462553525327723776446238227926525637944243178374767712611575588861363177528772328911344481681596166835878733295347586654166771492669368458546877543297328683625872347456788193676714624838333993898......

4.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
1234567899192939495969798999919929939949959969979989999991......

5.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
1234567891929394959697989991992993994995996997998999991999......

6.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
1234567895556666777788889996676777777787888888898999997777......

7.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
1111111111111111111111111111111111111111111111111111111111......

8.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
121212121212121212121212121212121212121212121212121212121212......

9.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
1234321234321234321234321234321234321234321234321234321234321......

10.in

Find the sum of the first 100000000000000 terms (mod 1000000123) of the hidden sequence inside the following string.
111322311132231113223111322311132231113223111322311132231113223111322311132231113223......

限制

1s

来源

SNOI2018 Day 2 - Problem C

信息

ID
2044
难度
6
分类
(无)
标签
递交数
35
已通过
13
通过率
37%
被复制
2
上传者

相关

在下列训练计划中:

RP++分类题库