아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Cheating

시간 제한1초메모리 제한1024 MB

요약
네 글자 암호를 추측할 때마다 돌아오는 정보만으로 50번 안에 암호를 알아낸다.
난이도

보통10점 중 7점

유형
완전 탐색, 구현, 재귀, 문자열
정답자
아직 제출이 없습니다

문제

The Northwestern Europe Regional Contest is coming up soon, and you do not feel confident about your programming skills. In an act of desperation you decide to put on your black hat. After doing some reconnaissance on the contest website you stumble upon a hidden page, guarded by a password prompt in a system known as the Incredibly Clever Password Control (ICPC). Perhaps this is where the jury stores the solutions to all the contest problems?

After inspecting the system you make the following observations about ICPC:

  • It has a very strict password policy, requiring the password to consist of exactly four lowercase letters.

  • It allows at most 5050 incorrect login attempts before users are blocked from the system.

  • After every incorrect login attempt, ICPC reports back two numbers about the password that was entered:

    • the number of positions that were correct, and
    • the number of letters that were correct but in an incorrect position.

Use this information to log into the system.

예제1

  1. 예제 1

    입력
    
    1 2
    
    0 3
    
    3 0
    
    correct
    
    예상 출력
    accp
    
    cacp
    
    ocpc
    
    icpc