sbcxknmsl @ 2017-02-03 13:12:07
染上烟瘾了呵呵
by sbcxknmsl @ 2017-02-03 15:10:57
附上90分代码
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<iomanip>
#include<ctime>
#include<set>
#include<list>
#include<cmath>
#include<cstdlib>
#include<string>
#include<cstring>
using namespace std;
int main()
{
long long a,b,i,n;
cin>>b;
cin >> a;
i=1;
n=b;
while(i>0)
{
i=b/a;
b=i;
n+=b;
}
cout<<n;
return 0;
}
by 377_is_rubbish @ 2017-02-16 14:02:01
满分代码
、、、cpp
#include<cstdio>
int main()
{
int n,k;
scanf("%d%d",&n,&k);
printf("%d\n",((long long)n*k-1)/(k-1));
return 0;
}
、、、 简单无解释。
by M_sea @ 2017-03-07 21:10:50
额
by 小凯玩具kevin @ 2017-03-19 18:20:03
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n,x,a,b;
cin>>x>>n;
b=x;
do
{
a=x/n;
b=a+b;
x=x+a-a*n;
}
while(x>=n);
cout<<b<<endl;
}
by jessie @ 2017-05-07 20:21:49
呵呵
by jacky567 @ 2017-05-09 17:59:23
我很无语但又很多语(ˉ▽ˉ;)...
——我的语文老师:钟惠林
by sbcxknmsl @ 2017-05-14 11:14:35
额呵呵呵呵呵呵