Docoding OJ
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
Login
Register
4248: 【入门】最多能倒多少杯水
Memory Limit:16 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:55
Solved:37
Submit
Submit Record
Statistics
ShowOff!
Description
花花所在的学校引入了电水箱为同学们烧开水。已知电水箱的容量为n升(n<=10L),同学们带的杯子平均容量为x毫升(x在100~300之间),请问烧一箱开水,最多能倒多少杯(不足1杯算1杯)。(4.1.2)
Input
2个整数n和x;n代表电水箱的总容量(单位为升L),x代表平均1个杯子的容量(单位为毫升ml)
Output
一个整数,代表最多能够倒多少杯水(不足1杯算1杯)
Sample Input
Copy
1 120
Sample Output
Copy
9
Source/Category
分支
双分支
Submit
Submit Record
Statistics
ShowOff!