[Add] hhcn, aplusb

This commit is contained in:
tiennm99 committed 2023-09-17 22:50:49 +07:00
1 parent a5f05e275b
commit 7f61d7cb30
2 files changed
+17

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
n = int(input())
for _ in range(n):
a, b = map(int, input().split())
total = a + b
print(total)
+11
View File
@@ -0,0 +1,11 @@
import math
area1, area2, area3 = map(int, input().split())
length = math.sqrt(area1 * area2 / area3)
width = math.sqrt(area2 * area3 / area1)
height = math.sqrt(area3 * area1 / area2)
sum_of_edges = 4 * (length + width + height)
print(int(sum_of_edges))