Skip to content

Commit 876f4f3

Browse files
committed
Finish question B
1 parent 128887f commit 876f4f3

File tree

1 file changed

+8
-3
lines changed
  • アルゴリズム実技検定 過去問/第七回 アルゴリズム実技検定 過去問

1 file changed

+8
-3
lines changed

アルゴリズム実技検定 過去問/第七回 アルゴリズム実技検定 過去問/B - 蒸気圧.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@
1515

1616
class Solution:
1717
@staticmethod
18-
def vapor_pressure():
19-
pass
18+
def vapor_pressure(a: int, b: int, c: int) -> float:
19+
if b * c < a:
20+
a = b * c
21+
return a / b
22+
else:
23+
return a / b
2024

2125

2226
if __name__ == '__main__':
23-
pass
27+
A, B, C = map(int, input().split())
28+
print(Solution.vapor_pressure(A, B, C))

0 commit comments

Comments
 (0)