A1204 | [COCI-2010_2011-contest4]#2 AVION
来源COCI
时间限制1s
内存限制128MB
通过 / 提交0/0
题目描述
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.
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 ‘-’.
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!”.
If there are no CIA blimps, output the string “HE GOT AWAY!”.
输入输出样例
输入 #1
N-FBI1 9A-USKOK I-NTERPOL G-MI6 RF-KGB1
输出 #1
1
输入 #2
N321-CIA F3-B12I F-BI-12 OVO-JE-CIA KRIJUMCAR1
输出 #2
HE GOT AWAY!
输入 #3
47-FBI BOND-007 RF-FBI18 MARICA-13 13A-FBILL
输出 #3
1 3 5
暂无题解
C++ 编辑器
输入
输出
可保存默认模板;新题优先使用已保存模板。
当前快捷键仅展示,暂不支持修改。
- 撤销
Ctrl / ⌘ + Z - 重做
Ctrl / ⌘ + Y - 查找
Ctrl / ⌘ + F - 全选
Ctrl / ⌘ + A - 复制
Ctrl / ⌘ + C - 剪切
Ctrl / ⌘ + X - 粘贴
Ctrl / ⌘ + V - 自动排版
工具栏排版按钮 - 草稿保存
编辑时自动保存到本机
历史
提交记录
状态说明时间源码
AI
作答助手
你好,我是作答助手。可以问思路、复杂度、样例含义或代码报错原因;不会直接给出完整 AC 代码。
确定要清空代码吗?
提交通过
评测结果:Accepted