Bouncy NumbersProblem code: CE01 |
Working from left-to-right if no digit is exceeded by the digit to its left it is called an increasing number; for example, 22344. Similarly if no digit is exceeded by the digit to its right it is called a decreasing number; for example, 774410 we shall call a positive integer that is neither increasing nor decreasing a bouncy
number; for example, 155349.WAP to check whether a number is bouncy or not.
Input
The input consists of one number given as input at a time,the program checks if the number is bouncy or not.The number of test cases have to be specified in the first input.
Output
The output displays whether the number is bouncy or not,i.e it displays 1 when the number is bouncy and 0 when its not.
Input:7
1
2
3
4
5
6
150 Output:
0
0
0
0
0
0
1
| Author: | cerebration |
| Date Added: | 22-03-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | BF, CLOJ, CPP 4.3.2, F#, GO, ICK, JS, PERL6, PRLG, PYTH 3.1.2, TEXT, WSPC |
Comments

Fetching successful submissions

Where to register for this
Where to register for this contest? and please somebody give details about this CE 2010...
Looks like judge's IO is
Looks like judge's IO is incorrect.
someone pls give details
someone pls give details about this CE 2010
why is nobody providing
why is nobody providing details about this contest?? ... any admin?
@Admin... PLease recheck the
@Admin... PLease recheck the test data ..
i m pretty sure that it has fault
@Admin... PLease recheck the
@Admin... PLease recheck the test data ..
i m pretty sure that there is a fault in it.
@Admin I also think there is
@Admin I also think there is smethin wrong wid test data!!!!
Why not allowing submissions
Why not allowing submissions in C++ 4.0.0.8 ?
Hi Please see the post at :
Hi
Please see the post at : www.cerebration.posterous.com
I will recheck this data as soon as i get back to gurgaon as im currently in IIT Roorkee.
Please leave this question for the time being.
Thanks for participating.
Regards
Rohan Garg
admins, why are questions
admins, why are questions incomplete and sample test data wrong in many questions ??
plz fix the input/output at
plz fix the input/output at the earliest and i think there is some problem with in that cerebration website registration site too.cheers :D
@tmdada Whats the exact
@tmdada Whats the exact error? Please mail : chughgaurav@gmail.com with the exact error,he is handling the online forms.
thanks.i have mailed the
thanks.i have mailed the error to the above person :D
My submission has been marked
My submission has been marked as "internal error". This is not covered in FAQ.
what about 11111, is it
what about 11111, is it bouncy or not?
@Akash Mehrotra it isnt
@Akash Mehrotra
it isnt bouncy..
i m unable to submit the
i m unable to submit the solution , nothing happends after runnig ....
same problem with others i hope !!
When is the test data for
When is the test data for this problem going to be corrected?
OK ive looked at this problem
OK ive looked at this problem but it works perfectly on my PC,but when i submit my solution to the judge it keeps on running,ive mailed the codechef team about this and the problem will be corrected once i hear from them.
I cannot do anything about this as it runs with the test data on my PC fine.
Regards
Rohan Garg
@rohan garg what abt the
@rohan garg
what abt the sample test data for SPYROGRAPH ? Is dat correct ? Its has no connection with input data.
plz correct dat too.
thanx
Hi This question has been
Hi
This question has been corrected by me and will shortly be updated by codechef as well.Please start working on this question.
Thanks
@admin I have solved 3
@admin I have solved 3 problems successfully in this contest, but my score remains at 2. Please update my score...
@Shashank Im sorry but i
@Shashank Im sorry but i cannot help in this regard,you will need to talk to codechef about this
@All The top rankers are suggested to register at our Fest database before 7PM,we will be sending out the Tie Breaker question to all the top rankers sometime after 7 and you will be required to mail the output back to us,just the output ( we will provide the input ).
Registration : http://cerebration.0fees.net/form/form/form.php
Hi The tie breaker question
Hi
The tie breaker question will be mailed to you at 8.30 exactly,sorry for the delay
Just another update,half of
Just another update,half of the people who are first have not registered in the central DB , so they are disqualified from this event.So far i have found only the following people in the database, im posting their email address
balajiganapathi.s@gmail.com, tapan.thaker@yahoo.co.in, tanwerh@yahoo.com,
hey rohan i was not able to
hey rohan i was not able to access internet before 7 due to my lectures...what should i do now and i had already registered on the event before..
i had registered on
i had registered on www.cerebration.posterous.com
@ rohan mine registered
@ rohan mine registered e-mail id is ankitgenius90@gmail.com
hey wat is this man...!! u
hey wat is this man...!! u should have emailed us about this registration...!! it is impossible to check comments every time.... or to be stayed onli9 on this site.....!!!
I have also registered
and by d way i registered on
and by d way i registered on this link...: http://cerebration.0fees.net/form/form/form.php
i still havent recived the
i still havent recived the question
can u plz email me at
tapan.thaker@yahoo.co.in
wats the dead line for this question....
abe kya natak laga rakha suno
abe kya natak laga rakha
suno yaar tumhe pahele batana chahiye tha ya email karna chahiye tha
this is not fair with us.
I spent my whole day for solving these problems now you are saying you haven't registred.
sending information of this much value throungh comment is not good.
please be fair in judging.
:(
:(
:(
@rohan Hey , u even got my
@rohan
Hey , u even got my email id registered . but still i haven't got the question ...
plz do something about it ...
@rohan... plz mail tht
@rohan... plz mail tht question 2 us
id:-hellohimanshumeena@gmail.com
Even i had registered with
Even i had registered with manoharagent13@gmail.com ID ..
This event is a fraud ..
This event is a fraud .. X-(
How can the event organizer be so irresponsible to pass the contest details on comment section??
gorgeous event.. update's r
gorgeous event.. update's r giving in the comment section.!!!!
If knowledge is more
If knowledge is more important for you than there is no new thing to learn from the tie-breaker question.They sent a copy of SPOJ:PIR, and the most funny thing is this rule : "The first person to get the correct output wins the first position,second person to get the correct output gets second position,so on and so forth."
So all I have to do is Copy+paste.