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
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.
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 ‘.’.
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!”
HE GOT AWAY!
Those who are getting WA should read the question carefully. It is not asking for total CIA blimps, but the indices of them. Got 2 WA due to this.
Last edit: 2014-02-05 18:01:54
But, seriously, why is it in classical?
Oh dear lord!, How can this question be here with ALL languages and a 50KB limit!
Waste...Move 2 tutorial...
got it....for C users->use long int instead of int...it caused me runtime error
is seems easy.. but I got 3 WA.. enable to find fault.. and the comments say its very easy.. what the #uck
MR. BEAN :
GOT RUNTIME ERROR WITH C .......
can any one post some more test cases