AtCoder Beginner Contest 087_A - Buying Sweets
よくわからないけど
バイトも減らした方がいいのか・・・・?
#include <iostream>
using namespace std;
int main (){
//持っている金額
int total_money;
cin >> total_money ;
//ケーキの金額
int cake_price;
cin >> cake_price;
//ドーナッツの金額
int donuts_price;
cin >> donuts_price;
cout << (total_money - cake_price) % donuts_price << "\n";
return 0;
}