aZhouyiyulg1 @ 2016-10-25 21:38:21
#include<iostream>
using namespace std;
int main()
{
long long n,k,j=0;
cin>>n>>k;
for(int i=1;i<=n;i++)
{
j++;
if(j%k==0) j++;
}
cout<<j;
return 0;
}
by wjcxr @ 2016-12-03 09:03:34
不需要用long long的,用int就行了