Round and Round we GoProblem code: MANIP3 |
Babloo wanted to make Babli a friendship band. He wanted it to read 'str' on her wrist. Once he'd done that and Babli had put it on, he realized that apart from str, a lot of other sentences could be read by changing the first word of the sequence. For example Babli is the best: Babloo could also be read the best: BablooBabli on her wrist. So, we give you n different str strings followed by a weird sequence like the one in the example, all you have to do is tell us if it can be read off the string or not.
Input
First line of input contains an integer t, t <= 200, representing the number of test- cases. Then 2t lines follow each containing a string followed by the substring to be searched in the next line.
Output
For each test case output the nth answer ( YES or NO ) on a separate line
Limits
Maximum length of the string will be 100 characters.Sample
Input 3 Coding rocks the world worldCoding rocks Get ready to blow your brains off! blow your brains off Techtatva.in in Techtatva Output YES YES NO
| Author: | admin |
| Date Added: | 31-08-2009 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, F#, FORT, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TEXT, WSPC |
Comments

Fetching successful submissions

anthing wrong in the test
i feel the same
i feel the same
Fixed
Fixed
My code is working fine on my
My code is working fine on my computer. All the example cases ar etested for. Getting a wrong answer as my result
For participants other than
For participants other than MIT students are there any prizes????
hi, Kunal: As currently
hi,
Kunal: As currently planned, the competition is for all college going students in India. So, yes. However, the final decision rests with the student council. In the meantime, please register at
http://techtatva.in/09/event.php?event=algosm
to be eligible for the prizes.
regards,
Ankur (event co-ordinator)
hi, Tushar: Please check
hi,
Tushar: Please check your code. You're missing out something, somewhere.
regards,
Ankur (event co-ordinator)
well my code is working in my
well my code is working in my UBUNTU
But no chances for this
But no chances for this question to be wrong.Many have solved it.
Kunal, if you have registered
Kunal, if you have registered for the Algosm event at the techtatva.in website, you are eligible for the prize :)
Where will the final results
@ Nadeem Moidu The ties were
@ Nadeem Moidu The ties were broken on the basis of submission time. The results have been put up at the Techtatva website.