본문 바로가기
python-algorithm

백준 26532 Acres

by 무적김두칠 2022. 12. 24.

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
반응형

'python-algorithm' 카테고리의 다른 글

백준 26566 Pizza  (0) 2022.12.24
백준 26731 Zagubiona litera  (0) 2022.12.24
백준 26500 Absolutely  (0) 2022.12.24
백준 26766 Serca  (0) 2022.12.24
백준 6888 Terms of Office  (0) 2022.12.23

댓글