Vorest @ 2017-02-25 15:08:21
交换新烟蒂的应该是傻子或者环保工人吧(-_-#)
by Vorest @ 2017-02-25 15:09:25
附上满分答案
#include<iostream>
#include<cmath>
using namespace std;
int n,x,a,b,c;
int main()
{
cin>>x>>n;
b=x;
do
{
a=x/n;
b=a+b;
x=x+a-a*n;
}
while(x>=n);
cout<<b<<endl;
}
by 中2少年雷耶斯 @ 2017-04-16 20:07:11
666