Page 4 of 4

Re: 275

Posted: Mon Dec 08, 2008 5:29 pm
by abid_iut
Thanks Articuno
Once again, You have proven as a very good helping friend of mine.
I am very grateful to U and I hope U will not become bore to help me more and more(as I am not very good in programming....
still trying).
anyway Thankx again. :)

Re: 275

Posted: Tue Feb 22, 2011 3:25 pm
by bill8124
Another Stupid Mistake:
"Output for each input instance (including the last input instance) should be followed by a blank line. "

NOT
"Output for each input instance should be seperated with a blank line. "
I get a WA because of this mistake...

Re: 275

Posted: Sun Aug 25, 2013 12:50 pm
by Hikari9
A lot of input :D

Sample input:

Code: Select all

0 3
231 369
337 727
105 440
546 709
181 932
188 566
59 590
38 722
171 342
109 739
38 114
489 526
320 601
145 818
612 899
2 594
0 728
20 380
614 838
945 946
0 0
AC output:

Code: Select all

.
This expansion terminates.

.62601
The last 5 digits repeat forever.

.4635488308115543328748280605226960110041265474552
95735900962861072902338376891334250343878954607977
99174690508940852819807427785419532324621733149931
22420907840440165061898211829436038514442916093535
07565337001375515818431911966987620357634112792297
11141678129298486932599724896836313617606602475928
47317744154057771664374140302613480055020632737276
47867950481430536451169188445667125171939477303988
99587345254470426409903713892709766162310866574965
61210453920220082530949105914718019257221458046767
53782668500687757909215955983493810178817056396148
55570839064649243466299862448418156808803301237964
23658872077028885832187070151306740027510316368638
23933975240715268225584594222833562585969738651994
497936726272352132049518569
The last 726 digits repeat forever.

.23863
The last 2 digits repeat forever.

.7700987306064880112834978843441466854724964739069
11142454160789844851904090267983074753173483779971
79125528913963328631875881523272214386459802538787
02397743300423131170662905500705218617771509167842
03102961918194640338504936530324400564174894217207
33427362482369534555712270803949224259520451339915
37376586741889985895627644569816643159379407616361
07193229901269393511988716502115655853314527503526
09308885754583921015514809590973201692524682651622
00282087447108603667136812411847672778561354019746
12129760225669957686882933709449929478138222849083
21579689703808180535966149506346967559943582510578
27926657263751763046544428772919605077574047954866
00846262341325811001410437235543018335684062059238
363892806
The last 708 digits repeat forever.

.1942060085836909871244635193133047210300429184549
35622317596566523605150214592274678111587982832618
02575107296137339055793991416309012875536480686695
27896995708154506437768240343347639484978540772532
18884120171673819742489270386266094
The last 232 digits repeat forever.

.3321554770318021201413427561837455830388692579505
30035335689045936395759717314487632508833922261484
098939929328621908127208480565371024734982
The last 141 digits repeat forever.

.1
This expansion terminates.

.052631578947368421
The last 18 digits repeat forever.

.5
This expansion terminates.

.1474966170500676589986468200270635994587280108254
39783491204330175913396481732070365358592692828146
14343707713125845737483085250338294993234100135317
99729364005412719891745602165087956698240866035182
67929634641407307171853856562922868741542625169
The last 246 digits repeat forever.

.3
The last 1 digits repeat forever.

.9296577946768060836501901140684410646387832699619
77186311787072243346007604562737642585551330798479
08745247148288973384030418250950570342205323193916
34980988593155893536121673003802281368821292775665
39923954372623574144486692015209125475285171102661
59695817490494
The last 262 digits repeat forever.

.5324459234608985024958402662229617304492512479201
33111480865224625623960066555740432612312811980033
27787021630615640599001663893510815307820299500831
94675540765391014975041597337770382695507487520798
66888519134775374376039933444259567387687188019966
72212978369384359400998336106489184692179700499168
0
The last 300 digits repeat forever.

.1772616136919315403422982885085574572127139364303
17848410757946210268948655256723716381418092909535
45232273838630806845965770171149144254278728606356
96821515892420537897310513447432762836185819070904
645476
The last 204 digits repeat forever.

.6807563959955506117908787541713014460511679644048
94327030033370411568409343715239154616240266963292
54727474972191323692992213570634037819799777530589
54393770856507230255839822024471635150166852057842
04671857619577308120133481646273637374860956618464
96106785317018909899888765294771968854282536151279
19911012235817575083426028921023359288097886540600
66740823136818687430478309232480533926585094549499
443826473859844271412
The last 420 digits repeat forever.

.003367
The last 6 digits repeat forever.

.
This expansion terminates.

.052631578947368421
The last 18 digits repeat forever.

.7326968973747016706443914081145584725536992840095
46539379474940334128878281622911694510739856801909
30787589498806682577565632458233890214797136038186
15751789976133651551312649164677804295942720763723
15035799522673031026252983293556085918854415274463
00715990453460620525059665871121718377088305489260
14319809069212410501193317422434367541766109785202
86396181384248210023866348448687350835322195704057
2792362768496420047
The last 418 digits repeat forever.

.9989429175475687103594080338266384778012684
The last 42 digits repeat forever.