python-algorithm
백준 26532 Acres
무적김두칠
2022. 12. 24. 12:41
https://www.acmicpc.net/problem/26532
26532번: Acres
You have a rectangular field you want to plant with corn. You know the dimensions of the field in yards, and you know that one bag of corn seed will cover 5 acres. Having passed all your elementary math courses you also know that 4840 square yards is equal
www.acmicpc.net
1
2
3
4
5
6
7
8
9
|
from math import ceil
def sol(a, b):
answer = ceil((a*b)/4840/5)
return answer
if __name__ == '__main__':
a, b = map(int, input().split())
print(sol(a, b))
|
cs |
반응형