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

33246번 - Integrity Overflow 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB114644956.322%

문제

The Fortune Protection Corporation (FPC) is a company specialized in securely storing the money of their clients. The money safe is sealed with a 50 cm thick steel door that can only open after correctly entering the secret password in a terminal next to the door. The FPC takes the integrity of this system very serious, and wants to be sure that the door never opens when somebody enters an incorrect password. Since some of the employees of the FPC have dyslexia, the safe will also open when the password contains one incorrect character (it must have the correct length, though).

Given an audit log containing all access attempts to the safe, can you tell whether the integrity of the safe is compromised?

입력

  • One line with one integer: 1ドル \leq n \leq 1000,ドル the number of lines in the audit log.
  • One line containing the correct password.
  • $n$ lines with two words each, separated with a single space:
    • The first word is the entered password.
    • The second word is either "ALLOWED" or "DENIED", depending on whether the password was correct or incorrect, respectively.

All passwords are at most 32 characters in length and only contain letters from the English alphabet (A-Z and a-z) and numbers (0-9).

출력

One line, containing "SYSTEM SECURE" if the audit log contains no suspicious access attempts, or "INTEGRITY OVERFLOW" if the security of the system has been compromised.

제한

예제 입력 1

4
SuperSecret123
SuperSecret123 ALLOWED
SuperSekret123 ALLOWED
Hunter02 DENIED
password123 DENIED

예제 출력 1

SYSTEM SECURE

예제 입력 2

4
CorrectHorseBatteryStaple
CorrectHorseBatteryStaple ALLOWED
HorseCorrectStapleBattery ALLOWED
CorrectHorseBatteryStaple ALLOWED
123456789 DENIED

예제 출력 2

INTEGRITY OVERFLOW

힌트

출처

University > Delft University of Technology > Freshmen Programming Contest 2020 I번

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

출처

대학교 대회

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

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