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 1172. Ship Routes

Is this output right?(N=1......30)
Posted by Lin 1 Oct 2002 13:42
1
16
1584
463104
299289600
361552896000
732443959296000
2305449150971904000
10654390419268829184000
6920214578354800558800000
61152377325314475294720
7098963015274747190071787520
106459726394067298796772293345280
21744352989317777418537171765166080
47498845317423375939485280755676453273600
1369194888259957058516432482121960109637632000
47707727343353896071849199802676518699529142272000
198688065044741506792127293398293547707178657251328000
97908297986853596289751162973434570005127864341000880128000
5658411485682054563233513036204820116833187371988441418956800000
3804418826562281061366609374760846640177306323287429048139264000000
2954227420326099129930691812076717959666831089054554318281052323840000
00
2632048450621963385564217879562108216922338757527021589770914779049216
000000
2674374039781190535182247433058431623911627168482448386681774871056508
05702656000000
3081998488818077502979646392150768764697262407973928271069996848309788
4292546560000
4079430842677444020458789055284437035377689124323794828380369516462185
2568977408000000
5854058595420455259314085499870932177527127956573251078768444812722023
3389546487676928000000
9562265549579035724936789114248267922015395457399253597102677301093514
221088746428140879872000000
1739718951590537042714251158989667483872007669374448115496657465787730
40131517368586035299090432000000
3512331724090453384614741919634889864232078679806054186280835886792417
959499924105350930517249228800000000
Really sorry,I make a big mistake
Posted by Lin 1 Oct 2002 19:12
> 1
> 16
> 1584
> 463104
> 299289600
> 361552896000
> 732443959296000
> 2305449150971904000
> 10654390419268829184000
> 6920214578354800558800000
> 61152377325314475294720
> 7098963015274747190071787520
> 106459726394067298796772293345280
> 21744352989317777418537171765166080
> 47498845317423375939485280755676453273600
> 1369194888259957058516432482121960109637632000
> 47707727343353896071849199802676518699529142272000
> 198688065044741506792127293398293547707178657251328000
> 97908297986853596289751162973434570005127864341000880128000
> 5658411485682054563233513036204820116833187371988441418956800000
> 3804418826562281061366609374760846640177306323287429048139264000000
>
2954227420326099129930691812076717959666831089054554318281052323840000
> 00
>
2632048450621963385564217879562108216922338757527021589770914779049216
> 000000
>
2674374039781190535182247433058431623911627168482448386681774871056508
> 05702656000000
>
3081998488818077502979646392150768764697262407973928271069996848309788
> 4292546560000
>
4079430842677444020458789055284437035377689124323794828380369516462185
> 2568977408000000
>
5854058595420455259314085499870932177527127956573251078768444812722023
> 3389546487676928000000
>
9562265549579035724936789114248267922015395457399253597102677301093514
> 221088746428140879872000000
>
1739718951590537042714251158989667483872007669374448115496657465787730
> 40131517368586035299090432000000
>
3512331724090453384614741919634889864232078679806054186280835886792417
> 959499924105350930517249228800000000
>
Really sorry,I made a big mistake
Posted by Lin 1 Oct 2002 19:12
> 1
> 16
> 1584
> 463104
> 299289600
> 361552896000
> 732443959296000
> 2305449150971904000
> 10654390419268829184000
> 6920214578354800558800000
> 61152377325314475294720
> 7098963015274747190071787520
> 106459726394067298796772293345280
> 21744352989317777418537171765166080
> 47498845317423375939485280755676453273600
> 1369194888259957058516432482121960109637632000
> 47707727343353896071849199802676518699529142272000
> 198688065044741506792127293398293547707178657251328000
> 97908297986853596289751162973434570005127864341000880128000
> 5658411485682054563233513036204820116833187371988441418956800000
> 3804418826562281061366609374760846640177306323287429048139264000000
>
2954227420326099129930691812076717959666831089054554318281052323840000
> 00
>
2632048450621963385564217879562108216922338757527021589770914779049216
> 000000
>
2674374039781190535182247433058431623911627168482448386681774871056508
> 05702656000000
>
3081998488818077502979646392150768764697262407973928271069996848309788
> 4292546560000
>
4079430842677444020458789055284437035377689124323794828380369516462185
> 2568977408000000
>
5854058595420455259314085499870932177527127956573251078768444812722023
> 3389546487676928000000
>
9562265549579035724936789114248267922015395457399253597102677301093514
> 221088746428140879872000000
>
1739718951590537042714251158989667483872007669374448115496657465787730
> 40131517368586035299090432000000
>
3512331724090453384614741919634889864232078679806054186280835886792417
> 959499924105350930517249228800000000
>
I made the same mistake myself. (i think). I've forgot to put "break"s after the case statements.
Posted by Gruber Matei (gruber@go.ro) 16 Dec 2002 03:29
> > 1
> > 16
> > 1584
> > 463104
> > 299289600
> > 361552896000
> > 732443959296000
> > 2305449150971904000
> > 10654390419268829184000
> > 6920214578354800558800000
> > 61152377325314475294720
> > 7098963015274747190071787520
> > 106459726394067298796772293345280
> > 21744352989317777418537171765166080
> > 47498845317423375939485280755676453273600
> > 1369194888259957058516432482121960109637632000
> > 47707727343353896071849199802676518699529142272000
> > 198688065044741506792127293398293547707178657251328000
> > 97908297986853596289751162973434570005127864341000880128000
> > 5658411485682054563233513036204820116833187371988441418956800000
> >
3804418826562281061366609374760846640177306323287429048139264000000
> >
>
2954227420326099129930691812076717959666831089054554318281052323840000
> > 00
> >
>
2632048450621963385564217879562108216922338757527021589770914779049216
> > 000000
> >
>
2674374039781190535182247433058431623911627168482448386681774871056508
> > 05702656000000
> >
>
3081998488818077502979646392150768764697262407973928271069996848309788
> > 4292546560000
> >
>
4079430842677444020458789055284437035377689124323794828380369516462185
> > 2568977408000000
> >
>
5854058595420455259314085499870932177527127956573251078768444812722023
> > 3389546487676928000000
> >
>
9562265549579035724936789114248267922015395457399253597102677301093514
> > 221088746428140879872000000
> >
>
1739718951590537042714251158989667483872007669374448115496657465787730
> > 40131517368586035299090432000000
> >
>
3512331724090453384614741919634889864232078679806054186280835886792417
> > 959499924105350930517249228800000000
> >
Re: Is this output right?(N=1......30)
Posted by Lucian Ilea 21 Jun 2011 19:41
Something is wrong. Your first answers are correct but the others have mistakes. For instance, if n=11, the correct answer is 610152377325314475294720000000