์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1010 ~ 1027 (์ž…์ถœ๋ ฅ) ํŒŒ์ด์ฌ ํ’€์ด

  • -

๋ฌธ์ œ ๋งํฌ : https://codeup.kr/problemsetsol.php?psid=23

 

๋ฌธ์ œ์ง‘ / ๊ธฐ์ดˆ 100์ œ

 

codeup.kr

 

*1010๋ฒˆ

x = int(input())
print(x)

*1011๋ฒˆ

x = str(input())
print(x)

*1012๋ฒˆ

x = float(input())
print("%f"%x)

*1013๋ฒˆ

a, b = map(int,input().split())
print(a,b)

*1014๋ฒˆ

a, b = map(str,input().split())
print(b,a)

*1015๋ฒˆ 

a = float(input())
print("%0.2f"%a)

์†Œ์ˆ˜์  ๋‘˜์งธ์ž๋ฆฌ์—์„œ ๋ฐ˜์˜ฌ๋ฆผํ•˜๋ ค๋ฉด %0.2f ๋˜๋Š” %.2f ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค.

 

*1016๋ฒˆ

a = input()
print(a,a,a)

*1017๋ฒˆ

a=input()
print(a,a,a)

*1018๋ฒˆ

hour=str(input())
print(hour)

*1019๋ฒˆ

y,m,d = map(str,input().split('.'))
if len(m)<2 : m = "0"+m
if  len(d)<2: d = "0"+d
if len(y) == 3: y = "0"+y
elif len(y) == 2: y = "00"+y
elif len(y)==1: y = "000"+y
print("%s.%s.%s"%(y,m,d))

*1020๋ฒˆ

a,b = map(str,input().split('-'))
print("%s%s"%(a,b))

*1021๋ฒˆ

a = input()
print(a)

*1022๋ฒˆ

a = input()
print(a)

*1023๋ฒˆ

i,f = map(str,input().split("."))
print(i,f,sep="\n")

*1024๋ฒˆ

s = list(input())
for i in range(len(s)):
    print("'%s'"%s[i])

*1025๋ฒˆ

num = list(input())
for i in range(5):
    print('[',num[i]+"0"*(4-i),']',sep="")

*1026๋ฒˆ

h,m,s = map(str,input().split(':'))
if m == "00":
    m = "0"
print(m)

*1026๋ฒˆ

y,m,d = map(str,input().split('.'))
while(len(y) <4) :
    y = "0"+y
if len(m) == 1 : m= "0"+m
if len(d) == 1 : d= "0"+d
print("%s-%s-%s"%(d,m,y))

*C++/CPPํ’€์ด๋„ code up ์นดํ…Œ๊ณ ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.