Submit | All submissions | Best solutions | Back to list |
AVION1 - AVION |
Mirko and Slavko are USKOK agents tracking the movements of an unnamed corrupt government official. Anonymous sources have tipped them about his upcoming escape attempt. They now know he plans to use his diplomatic liaisons to try and hitch a ride on a CIA blimp leaving from Severin na Kupi blimp port.
It’s common knowledge that all CIA blimps have the string “FBI” somewhere in their registration codes. They obtained a list of all blimps scheduled for the designated day. There are exactly 5 blimps on the list. Write a program that will point out all CIA blimps.
Input
There are exactly 5 rows of input, each row representing one blimp registration code from the list. A registration code is a sequence of at most 10 uppercase letters of the English alphabet, digits ‘0’ to ‘9’, or dashes ‘-’.
Output
The first and only line of output must contain a space separated list of integers, sorted in increasing order, indicating the corresponding input rows containing registrations of CIA blimps. If there are no CIA blimps, output the string “HE GOT AWAY!”
Sample
Input: N-FBI1 9A-USKOK I-NTERPOL G-MI6 RF-KGB1 Output: 1
Input: N321-CIA F3-B12I F-BI-12 OVO-JE-CIA KRIJUMCAR1 Output: HE GOT AWAY!
Added by: | Kawmia Institutes |
Date: | 2011-02-18 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
Resource: | COCI |
hide comments
|
|||||
2011-07-20 07:27:42 dilip reddy
can any one post some more test cases |
|||||
2011-07-20 07:25:44 dilip reddy
can any one post some more test cases |
|||||
2011-06-08 16:01:34 lazzyboyy
crap..!! waste of time.. |
|||||
2011-06-07 16:52:08 prachi sharma
why i m getting wa again n again??? |
|||||
2011-05-01 20:59:31 Piotr KÄ…kol
1) Agree with numerix. 2) Awfully written. Such messy tasks should be removed from main SPOJ. 3) In my opinion, it isn't a good task for shortening. Mr Kuszner has sent me lately a great description for such challenge tasks. It's in the best answer under bolded Quality. |
|||||
2011-02-22 21:10:09 numerix
Too easy for challenge, even too easy for tutorial. |
|||||
2011-02-20 15:08:28 R@ja.... -[^_^]-
tutorial...:) Last edit: 2011-02-20 15:11:09 |
|||||
2011-02-20 06:17:23 M. Zuhriyan Sauqi
SIGSEGV..--a |
|||||
2011-02-18 23:34:56 Kawmia Institutes
any another user want that plz write and what languages want to open in the problem in challenge mode |
|||||
2011-02-18 23:15:05 XeRoN!X
Not suitable for classical. Move it to challenge( shortening ) with 100 bytes limit and few more constraints :) Last edit: 2011-02-18 23:15:51 |