记录编号 617761 评测结果 AAAAAAAAAA
题目名称 4417.[ICPC2026河南省赛]赚的越多,赚的越少 最终得分 100
用户昵称 Gravatar小刘同学 是否通过 通过
代码语言 C++ 运行时间 0.270 s
提交时间 2026-07-26 22:40:42 内存使用 3.69 MiB
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;

int main(){
	freopen("zhuan.in","r",stdin);
	freopen("zhuan.out","w",stdout);
	long long n,k,x,tot=0;
	cin>>n>>x>>k;
	for(long long i=1;i<=1000000;i++){
		tot=tot+x-(tot+x)/k;
	}
	cout<<tot;
    return 0;
}