본문 바로가기

Codeup 1297 - 단면의 최대 넓이 http://codeup.kr/problem.php?id=1297 Codeup 1297 - 단면의 최대 넓이 n = int(input())widest = 0bend = 0​for i in range(1, int(n/2)): if widest
Codeup 1296 - 직사각형의 최대 넓이 http://codeup.kr/problem.php?id=1296 Codeup 1296 - 직사각형의 최대 넓이 n = int(input())​print(int((n/4) ** 2))
Codeup 1295 - 알파벳 대소문자 변환 http://codeup.kr/problem.php?id=1295 Codeup 1295 - 알파벳 대소문자 변환 string = input()print(string.swapcase())
Codeup 1294 - 씨저의 암호 2 http://codeup.kr/problem.php?id=1294 Codeup 1294 - 씨저의 암호 2 text = input()password = ''​for i in range(0, len(text)): if text[i] == ' ': password += text[i] elif ord(text[i]) > 119: if text[i] == 'x': password += 'a' elif text[i] == 'y': password += 'b' elif text[i] == 'z': password += 'c' else: code = ord(text[i]) + 3 password += chr(code)​print(password)
Codeup 1293 - 1등과 꼴등 http://codeup.kr/problem.php?id=1293 Codeup 1293 - 1등과 꼴등 n = int(input())scores = list(map(int, input().split()))highest = scores[0]lowest = scores[0]​for score in scores: if score > highest: highest = score if score
Codeup 1292 - 범인을 잡아라 1 http://codeup.kr/problem.php?id=1292 Codeup 1292 - 범인을 잡아라 1 dna = input()dnaSum = 0​for i in range(0, 10): dnaSum += int(dna[i])​if dnaSum % 7 == 4: print('suspect')else: print('citizen')
Codeup 1291 - 바이러스 백신 http://codeup.kr/problem.php?id=1291 Codeup 1291 - 바이러스 백신 import math​v1, v2, v3 = map(int, input().split())​vaccine = math.gcd(math.gcd(v1, v2), v3)​print(vaccine)
Codeup 1290 - 대금 만들기 http://codeup.kr/problem.php?id=1290 Codeup 1290 - 대금 만들기 n = int(input())countPiece = 0​for i in range(1, n): if n % i == 0: countPiece += 1​print(countPiece)