10930번: SHA-256
첫째 줄에 문자열 S가 주어진다. S는 알파벳 대문자와 소문자, 그리고 숫자로만 이루어져 있으며, 길이는 최대 50이다.
www.acmicpc.net
import hashlib
s = input()
encoded = s.encode()
hashed = hashlib.sha256(encoded).hexdigest()
print(hashed)
'BOJ 알고리즘 (패캠) > 자료구조, 구현' 카테고리의 다른 글
4195번: 친구 네트워크 (구현, 해시, dict, 분리집합) - Fastcampus (0) | 2020.10.04 |
---|---|
1920번: 수 찾기 (구현, 해시, set) - Fastcampus (0) | 2020.10.04 |
5397번: 키로거 (구현, 스택) - Fastcampus (0) | 2020.10.04 |
1966번: 프린터큐 (구현, 큐) - Fastcampus (0) | 2020.10.04 |
1874번: 스택수열 (구현, 스택) - Fastcampus (0) | 2020.10.04 |