SW개발/코딩테스트

[코드업 기초 100제]1026~1030번 문제 풀이

1026번

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

1027번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a, b, c = input().split(".")
print(c.zfill(2), b.zfill(2), a.zfill(4), sep="-")

1028번

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

1029번

import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
a=float(input())
print("%.11f" % a)

1030번

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