#CCCX. 曹冲称象
曹冲称象
背景
特别适合土拨鼠, ^_^
描述
曹冲用x块石头称出y只大象,每块石头a吨。
格式
给定两个整数 x,y,a。
输入
两个整数 x 和 y,满足0≤x,y,a≤1000。
输出
一个整数,即大象的重量。
样例
【输入样例】
输入数据 1
1000 200 10
【输出样例】
输出数据 1
50
限度
5s
特别适合土拨鼠, ^_^
曹冲用x块石头称出y只大象,每块石头a吨。
给定两个整数 x,y,a。
两个整数 x 和 y,满足0≤x,y,a≤1000。
一个整数,即大象的重量。
1000 200 10
50
5s
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.