【入门】米老鼠偷糖果
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
米老鼠发现了厨房放了n颗糖果,它一次可以背走a颗,请问米老鼠背了x次之后还剩多少颗?(假设x次之后一定有糖果剩下)
输入格式
三个整数n、a、x分别代表总共有n颗糖果,米老鼠一次背走a颗糖果,总共背了x次。
输出格式
一个整数,代表剩余的糖果数量。
样例
12 2 3
6
2022新生周赛第二场(Div. 3)
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 6
- Start at
- 2022-10-7 20:00
- End at
- 2022-10-7 21:39
- Duration
- 1.7 hour(s)
- Host
- Partic.
- 27