http://codeup.kr/problem.php?id=1408
Codeup 1408 - 암호 처리
password = input()
encrypt_1 = ''
encrypt_2 = ''
for i in range(0, len(password)):
asc = ord(password[i]) + 2
encrypt_1 += chr(asc)
asc = int((ord(password[i]) * 7) % 80 + 48)
encrypt_2 += chr(asc)
print(encrypt_1)
print(encrypt_2)
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1410 - 올바른 괄호 1 (괄호 개수 세기) (0) | 2019.03.05 |
---|---|
Codeup 1409 - 기억력 테스트 1 (0) | 2019.03.05 |
Codeup 1407 - 문자열 출력하기 1 (0) | 2019.03.04 |
Codeup 1406 - love (0) | 2019.03.02 |
Codeup 1405 - 숫자 로테이션 (0) | 2019.03.02 |