Python/Baekjoon
[BOJ] Bronze Ⅴ, IV - Day 13
단월໒꒱
2022. 1. 9. 00:53
사용 언어 : Python
푼 문제
#21300
[Python]
a, b, c, d, e, f = map(int, input().split())
result = (a + b + c + d + e + f) * 5
print(result)
#22193
[Python]
N, M = map(int, input().split())
A = int(input())
B = int(input())
print(A * B)
파이썬으로 하면 간단한데 C로 하면 꽤나 복잡할 듯한 문제...
시간 나면 C로 다시 풀어볼 것!!
#23234
[Python]
print("The world says hello!")
#1008
[Python]
A, B = map(int, input().split())
print(A / B)
#1297
[Python]
diagonal, height, width = map(int, input().split())
rate = diagonal / (height ** 2 + width ** 2) ** 0.5
print("%d %d" % (height * rate, width * rate))
이렇게 해도 되지만 math 라이브러리를 import 해서 사용해도 될 것 같다