Logo
(追記) (追記ここまで)

26209번 - Intercepting Information 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB47583579337275.997%

문제

Spies Breaching Computers (SBC) is a private digital spy agency that is developing a new device for intercepting information using electromagnetic waves, which allows spying even without physical contact with the target.

The device tries to collect information one byte at a time, this is, a sequence of 8ドル$ bits where each of them, naturally, can have a value of 0ドル$ or 1ドル$. In certain situations, due to interference from other devices, the reading cannot be done successfully. In this case, the device returns the value 9ドル$ for the corresponding bit, informing that the reading could not be performed.

In order to automate the recognition of the information the device reads, a request was made for a program that, based on the information read by the device, informs whether all bits were read successfully or not. Your task is to write this program.

입력

The input consists of a single line, containing 8ドル$ integers $N_1,ドル $N_2,ドル $N_3,ドル $N_4,ドル $N_5,ドル $N_6,ドル $N_7$ and $N_8,ドル indicating the values read by the device ($N_i$ is 0, 1 or 9 for 1ドル ≤ i ≤ 8$).

출력

Print a single line containing the capital letter “S” if all bits are read successfully; otherwise print a single line containing the capital letter “F”, corresponding to a failure.

제한

예제 입력 1

0 0 1 1 0 1 0 1

예제 출력 1

S

예제 입력 2

0 0 1 9 0 1 0 1

예제 출력 2

F

힌트

출처

ICPC > Regionals > Latin America > Sub-Regional Brasil do ACM ICPC > Maratona de Programação da SBC 2022 I번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /