Skip to content

Commit 0336f04

Browse files
committed
Merge branch 'main' of https://github.com/vcaard/learning
2 parents af67c33 + d8b0389 commit 0336f04

4 files changed

Lines changed: 34 additions & 1 deletion

File tree

py/beecrowd/beecrowd-1010.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# beecrowd | 1010
2+
3+
cod1, qtd1, valor1 = input().split()
4+
cod2, qtd2, valor2 = input().split()
5+
6+
qtd1 = int(qtd1)
7+
valor1 = float(valor1)
8+
qtd2 = int(qtd2)
9+
valor2 = float(valor2)
10+
11+
calc = (qtd1 * valor1) + (qtd2 * valor2)
12+
13+
print(f"VALOR A PAGAR: R$ {calc:.2f}")

py/beecrowd/beecrowd-1011.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# beecrowd | 1011
2+
3+
pi = 3.14159
4+
5+
esfera = float(input())
6+
calc = (4.0/3) * pi * esfera ** 3
7+
print(f"VOLUME = {calc:.3f}")

py/beecrowd/beecrowd-1012.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# beecrowd | 1012
2+
import math
3+
4+
pi = 3.14159
5+
A, B, C = input().split()
6+
7+
A = float(A)
8+
B = float(B)
9+
C = float(C)
10+
11+
s = (A + B + C)/2
12+
triangulo = math.sqrt(s * (s - A) * (s - B) * (s - C))
13+
print(triangulo)

py/codewars/Wide-Mouthed frog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Your goal in this kata is to create complete the mouth_size method
1+
# Your goal in this kata is to create complete the mouth_size method
22
# this method takes one argument animal which corresponds to the animal encountered by the frog.
33
# If this one is an alligator (case-insensitive) return small otherwise return wide.
44

0 commit comments

Comments
 (0)