Skip to content

Instantly share code, notes, and snippets.

View saturnglave's full-sized avatar

saturn saturnglave

View GitHub Profile
@saturnglave
saturnglave / what_base_is_this.py
Last active June 23, 2019 04:01
what_base_is_this
# coding:utf-8
import codecs
import re
#入力した値を2進数、16進数、8進数として扱い、ASCIIデコードする
# 1問目。01100100 01101111 01100011 01110100 01101111 01110010
print("input decimal numbers")
a = map(str, input().split())
for i in a:
print(chr(int(i,2)),end="")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.