263... CLarification. HELP ME PLS

Moderator: Board moderators

263... CLarification. HELP ME PLS

Would that imput be valid? Which would the output be for this imput?
192
00192
55694
what does he mean with "Note that 0 is a permitted digit"?

I GOT MANY WA
chulin nagasaki
New poster

Posts: 3
Joined: Wed Apr 26, 2006 7:06 pm

Output for above input:
Code: Select all
`Original number was 192921 - 129 = 792972 - 279 = 693963 - 369 = 594954 - 459 = 495954 - 459 = 495Chain length 5Original number was 192921 - 129 = 792972 - 279 = 693963 - 369 = 594954 - 459 = 495954 - 459 = 495Chain length 5Original number was 5569496554 - 45569 = 5098598550 - 5589 = 9296199621 - 12699 = 8692298622 - 22689 = 7593397533 - 33579 = 6395496543 - 34569 = 6197497641 - 14679 = 8296298622 - 22689 = 75933Chain length 8`

So you see there is no difference between 192 and 00192. Most probably such are not there.

chulin nagasaki wrote:what does he mean with "Note that 0 is a permitted digit"?

I'm not so sure what he exactly mean. Maybe telling to continue processing when you get 0 (like the 3rd input in the problem sample) or he simply meant arranging digits, say 6509, in decreasing order you get 9650 and in increasing order you get 0569 => 569.
mamun
A great helper

Posts: 286
Joined: Mon Oct 03, 2005 1:54 pm

Who is online

Users browsing this forum: No registered users and 1 guest