ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1366. Presents

What is the answer for N=1000? (-)
Posted by Sawe 29 Dec 2006 18:15
Re: What is the answer for N=1000? (-)
Posted by {AESC USU} Dembel 29 Dec 2006 21:21
My AC program outputs
1480300003716690803639166141189660542377872467716834615546918460898888171222360711813189873910548675459590726189130673952565926739378359567722411682225282955956835967209806662206094278319048852420295993918145867464929632177223403177771955752603660100590106551721447382848788617582081310047350358184775693687864320616320161884468076859109403218325729966499814817722523251910400861544265546575384584445357657178710339466137717023503056252650043203882433860978792626830828468703859597819544889563899703925789442886604592950312345074787367168818241367836225845351388059822881452853157092920449246805492179297901159845450144415217557357263061954571997705726917546636177873914180435642912954635442323456238142340910752454816552406177681946008016133704545795503609904692149425055853719332957948207301824597654871393025676689264387133050350749500959081818757218706290284427041888179306280825957697116463097109027133895778139249850841954896876020466195020089609619793369712000118458329727664968204252323090144241603833525494325871758
0459951322429538762079323749213310619485478167533526424544336840634977862657715415393616579517641428024670820968425502109482342196679493125860192623788850206306117990892038912243728009669418031875672954018774352295528769340334462719200819324315004792668311620678980873752032993217592668963103980133320527177306869411988668143940820863453661616212548496824643329908661897203872632014352453015915512281606720947935915897510467617568994297290953898191551861043805896681345455213581061764326832650888474000756305781255775687211982794817701249872000284658432008360288350567522393041571024094338314208769709123757048278135225616280959304899730763636907169037354447533472772222696440183810580410403369885904650807263622112128476725617926138469557580012677787191460879974033313516907808504030187073870072198602651832414459785453439394011054887477145673354881969001489115029988337456903614450407565028424715429112260226257773863450239446806663726060151559041267799765637213898847989262978734485546962599318890221534174397659133578613
4612426484416557074485085137922648888557127618980204107341206517456111787177656668620397156874752365541689736459115633909848251703534756902949331850082296669410306980175719986482188446333446450823956158029544268395051423740042819986368612454904255206373684842598857136228239326853906860111911390847498545181350875035398066868621959973870036473108206470890805125591766035651660263166256071859066523494404932873989243033885387310363168734739688132495065765084286985470381074859852651721482664917019227944750044815550686001

Edited by author 29.12.2006 21:22
Re: What is the answer for N=1000? (-)
Posted by sasha 1 Feb 2007 22:52