string 3

BAEKJOON 2703 - Cryptoquote

문제: https://www.acmicpc.net/problem/2703 문제A cryptoquote is a simple encoded message where one letter is simply replaced by another throughout the message. For example:Encoded: HPC PJVYMIYDecoded: ACM CONTESTIn the example above, H=A, P=C, C=M, J=O, V=N, Y=T, M=E and I=S. For this problem, you will decode messages.입력The first line of input contains a single integer N, (1 ≤ N ≤ 1000) which is the..

BAEKJOON 2684 - Penney Game

문제: https://www.acmicpc.net/problem/2684 문제Penney’s game is a simple game typically played by two players. One version of the game calls for each player to choose a unique three-coin sequence such as HEADS TAILS HEADS (HTH). A fair coin is tossed sequentially some number of times until one of the two sequences appears. The player who chose the first sequence to appear wins the game.For this prob..