263... CLarification. HELP ME PLS

All about problems in Volume II. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

263... CLarification. HELP ME PLS

Postby chulin nagasaki » Thu May 11, 2006 2:10 pm

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
THANKS FOR ADVANTAGE
chulin nagasaki
New poster
 
Posts: 3
Joined: Wed Apr 26, 2006 7:06 pm

Postby mamun » Thu May 11, 2006 2:50 pm

Output for above input:
Code: Select all
Original number was 192
921 - 129 = 792
972 - 279 = 693
963 - 369 = 594
954 - 459 = 495
954 - 459 = 495
Chain length 5
Original number was 192
921 - 129 = 792
972 - 279 = 693
963 - 369 = 594
954 - 459 = 495
954 - 459 = 495
Chain length 5
Original number was 55694
96554 - 45569 = 50985
98550 - 5589 = 92961
99621 - 12699 = 86922
98622 - 22689 = 75933
97533 - 33579 = 63954
96543 - 34569 = 61974
97641 - 14679 = 82962
98622 - 22689 = 75933
Chain 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
Location: Bangladesh


Return to Volume II

Who is online

Users browsing this forum: No registered users and 1 guest