시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 2392 1075 955 49.533%

문제

5명의 요원 중 FBI 요원을 찾는 프로그램을 작성하시오.

FBI요원은 요원의 첩보원명에 FBI가 들어있다. 

입력

5개 줄에 요원의 첩보원명이 주어진다. 첩보원명은 알파벳 대문자, 숫자 0~9, 대시 (-)로만 이루어져 있으며, 최대 10글자이다.

출력

첫째 줄에 FBI 요원을 출력한다. 이때, 해당하는 요원이 몇 번째 입력인지를 공백으로 구분하여 출력해야 하며, 오름차순으로 출력해야 한다. 만약 FBI 요원이 없다면 "HE GOT AWAY!"를 출력한다.

예제 입력 1

47-FBI
BOND-007
RF-FBI18
MARICA-13
13A-FBILL

예제 출력 1

1 3 5
W3sicHJvYmxlbV9pZCI6IjI4NTciLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJGQkkiLCJkZXNjcmlwdGlvbiI6IlxyXG48cD5cclxuXHQ1XHViYTg1XHVjNzU4IFx1YzY5NFx1YzZkMCBcdWM5MTEgRkJJIFx1YzY5NFx1YzZkMFx1Yzc0NCBcdWNjM2VcdWIyOTQgXHVkNTA0XHViODVjXHVhZGY4XHViN2E4XHVjNzQ0IFx1Yzc5MVx1YzEzMVx1ZDU1OFx1YzJkY1x1YzYyNC48XC9wPlxyXG5cclxuPHA+XHJcblx0RkJJXHVjNjk0XHVjNmQwXHVjNzQwIFx1YzY5NFx1YzZkMFx1Yzc1OCBcdWNjYTlcdWJjZjRcdWM2ZDBcdWJhODVcdWM1ZDAgRkJJXHVhYzAwIFx1YjRlNFx1YzViNFx1Yzc4OFx1YjJlNC4mbmJzcDs8XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlxyXG5cdDVcdWFjMWMgXHVjOTA0XHVjNWQwIFx1YzY5NFx1YzZkMFx1Yzc1OCBcdWNjYTlcdWJjZjRcdWM2ZDBcdWJhODVcdWM3NzQgXHVjOGZjXHVjNWI0XHVjOWM0XHViMmU0LiBcdWNjYTlcdWJjZj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3RyYXRpb24gY29kZSBpcyBhIHNlcXVlbmNlIG9mIGF0IG1vc3QgMTAgdXBwZXJjYXNlIGxldHRlcnMgb2YgdGhlIEVuZ2xpc2ggYWxwaGFiZXQsIGRpZ2l0cyAmbHNxdW87MCZyc3F1bzsgdG8gJmxzcXVvOzkmcnNxdW87LCBvciBkYXNoZXMgJmxzcXVvOy0mcnNxdW87LiZuYnNwOzxcL3A+XHJcbiIsIm91dHB1dCI6IjxwPlRoZSBmaXJzdCBhbmQgb25seSBsaW5lIG9mIG91dHB1dCBtdXN0IGNvbnRhaW4gYSBzcGFjZSBzZXBhcmF0ZWQgbGlzdCBvZiBpbnRlZ2Vycywgc29ydGVkIGluIGluY3JlYXNpbmcgb3JkZXIsIGluZGljYXRpbmcgdGhlIGNvcnJlc3BvbmRpbmcgaW5wdXQgcm93cyBjb250YWluaW5nIHJlZ2lzdHJhdGlvbnMgb2YgQ0lBIGJsaW1wcy4mbmJzcDs8XC9wPlxyXG5cclxuPHA+SWYgdGhlcmUgYXJlIG5vIENJQSBibGltcHMsIG91dHB1dCB0aGUgc3RyaW5nICZsZHF1bztIRSBHT1QgQVdBWSEmcmRxdW87LiZuYnNwOzxcL3A+XHJcbiIsImhpbnQiOiIiLCJvcmlnaW5hbCI6IjEiLCJwcm9ibGVtX2xhbmdfY29kZSI6Ilx1YzYwMVx1YzViNCJ9XQ==

출처

Contest > Croatian Open Competition in Informatics > COCI 2010/2011 > Contest #4 1번

  • 문제를 번역한 사람: baekjoon
  • 데이터를 추가한 사람: krenerd