목록코딩 테스트 문제 풀이 (80)
꾸준히 합시다
https://www.acmicpc.net/problem/5101 5101번: Sequences 11 is the 5th term The sequence is –1, -4, -7, -10 (-1+ -3 = -4, -4 + –3 = -7, -7+ -3 = -10) -8 isn’t in the sequence. www.acmicpc.net 문제 유형: 수학 # Solution 1 while True: start, dif, target = map(int, input().split()) if start == dif == target == 0: break if ((dif > 0 and target = start)): print('X') elif (target - start) % dif == 0: print((ta..
https://www.acmicpc.net/problem/11784 11784번: Hex Code In the movie The Martian (2015), astronaut Mark Watney, one of the crew members of Mission Ares III, was left behind on Mars due to an unexpected incident during the surface exploration on the planet Mars. The communication with Earth was quasi-inexistent. www.acmicpc.net 문제 유형: 구현 # Solution 1 while True: try: s = input() print(bytearray.fr..
https://www.acmicpc.net/problem/16360 16360번: Go Latin Your program is to read from standard input. The input starts with a line containing an integer, n (1 ≤ n ≤ 20), where n is the number of English words. In the following n lines, each line contains an English word. Words use only lowercase alphabet let www.acmicpc.net 문제 유형: 문자열 # Solution 1 for _ in range(int(input())): word = input() if wo..
https://www.acmicpc.net/problem/13288 13288번: A New Alphabet Input contains one line of text, terminated by a newline. The text may contain any characters in the ASCII range 32–126 (space through tilde), as well as 9 (tab). Only characters listed in the above table (A–Z, a–z) should be translated; any non-alph www.acmicpc.net 문제 유형: 구현, 문자열 # Solution 1 alpha = [' ', 'a', 'b', 'c', 'd', 'e', 'f'..