写水题题解真爽
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,x;
cin >> a >> b >> x;
cout << (x - b) / a << endl;
return 0;
}
妈妈的年龄是小竹的a倍还要多b岁
妈妈是x岁,小竹就是
ax−b
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b,x;
cin >> a >> b >> x;
cout << (x - b) / a << endl;
return 0;
}