SW개발/코딩테스트

[코드업 기초 100제]1021~1025번 문제 풀이

1021번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a=input()
print(a)

1022번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a=input()
print(a)

1023번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a, b=input().split('.')
print(a)
print(b)

1024번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a=input()
for b in a:
    print("'"+b+"'")

1025번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a=input()
print("["+str(int(a[0])*10000)+"]")
print("["+str(int(a[1])*1000)+"]")
print("["+str(int(a[2])*100)+"]")
print("["+str(int(a[3])*10)+"]")
print("["+str(int(a[4])*1)+"]")
728x90