Notice
Recent Posts
Recent Comments
Link
250x250
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

바닥부터 시작하는 개발 공부

[알고리즘]코드업 100제 본문

카테고리 없음

[알고리즘]코드업 100제

Im_light.J 2023. 2. 17. 23:59
728x90

6001- 6010 

#1
print("Hello")
#2
print("Hello World")
#3
print("Hello\nWorld")
#4
print("\'Hello\'")
#5
print("\"Hello World\"")
#6
print("\"!@#$%^&*()\'")
#7
print("\"C:\\Download\\\'hello\'.py\"")
#8
print("print(\"Hello\\nWorld\")")
#9
chr = input()
print(chr)
#10
num:int = int(input())
print(num)

 

6011-6020

#11
num:float = float(input())
print(num)
#12
from sys import stdin
a =stdin.readline().strip()
b =stdin.readline().strip()
print(f"{a}\n{b}")
#13
a ,b=input(), input()
print(f"{b}\n{a}")
#14
num = float(input())
num =[str(num) for i in range(3)]
print("\n".join(num))
#15
nums= list(map(int, input().split(" ")))
print(*nums, sep="\n")
#17
some = str(input())
print(*[some for i in range(3)],sep=" ")
#18
time = input()
print(time)
#19
day = input().split(".")
print(*day[::-1], sep="-")
#20
num = input().split("-")
print("".join(num))

 

6021-6030

#21
word = input()
print(*word, sep="\n")
#22
num = input()
print(*[num[i:i+2] for i in range(0,5,2)], sep=" ")
#23
min= input().split(":")[1]
print(min)
#24
words = input().split(" ")
print("".join(words))
#25
nums = list(map(int,input().split(" ")))
print(sum(nums))
#26
a, b =float(input()), float(input())
print(a+b)
#27
a = input()
n = int(a)  
print('%x'% n)
#28
a = input()
n = int(a)         
print('%X'% n)
#29
a = input()
n = int(a, 16)      
print('%o' % n) 
#30
n = ord(input())
print(n)

 

6031-6040

#31
c = int(input())
print(chr(c))
#32
n = int(input())
print(-n) 
#33
n =ord(input())
print(chr(n+1))
#34
a ,b =map(int,input().split(" "))
print(a-b)
#35
a ,b =map(float,input().split(" "))
print(a*b)
#36
a ,b =input().split(" ")
print(a*int(b))
#37
a = int(input())
b = input()
c=""
for i in range(a):
    c +=b
print(c)
#38
a, b = map(int, input().split(" "))
print(a**b)
#39
a, b = map(float, input().split(" "))
print(a**b)
#40
a, b = map(int, input().split(" "))
print(a//b)

 

6041-6050

#41
a, b = map(int, input().split(" "))
print(a%b)
#42
a=input()
a=float(a)
print( format(a, ".2f") )
#43
a,b= map(float, input().split(" "))
print( format(a/b, ".3f") )
#44
a,b= map(int, input().split(" "))
print(a+b, a-b, a*b, a//b, a%b, format(a/b, ".2f"), sep="\n")
#45
a, b, c = map(int,input().split(" "))
print(a+b+c, format((a+b+c)/3,".2f")) 
#46
n =int(input())
print(2*n) 
#47
a, b= map(int,input().split(" "))
print(a*(2**b))
#48
a, b= map(int,input().split(" "))
print(a<b) 
#49
a, b= map(int,input().split(" "))
print(a==b) 
#50
a, b= map(int,input().split(" "))
print(a<=b)

 

6051-6060

#56
a, b= map(int,input().split(" "))
print(True if bool(a)!=bool(b) else False) 
#57 
a, b= map(int,input().split(" "))
print(True if bool(a)==bool(b) else False) 
#58 
a, b= map(int,input().split(" "))
print(True if bool(a)==False and bool(b)==False else False)
#59
n= int(input()) 
print( -n-1 )
728x90
Comments