ABC36/A
# -*- coding: utf-8 -*-
def BOX_of_Tea(A, B):
#A: 箱に入っているペットボトルの本数 #B: 必要なペットボトルの本数 box = 0 while((box * A) < B): box += 1 return box
if __name__ == "__main__":
A = int(input("箱に入っているペットボトルの本数:")) B = int(input("欲しいペットボトルの本数:")) C = BOX_of_Tea(A,B) print("必要な箱: %d" % C)
- 最終更新:2016-05-14 21:35:19