仅#22WA 求调
查看原帖
仅#22WA 求调
1433965
ofthemoon楼主2025/1/5 21:09
#include<bits/stdc++.h>
#define int long long
using namespace std;
int k,x,y; 
signed main()
{
	cin>>k>>x>>y;
	if((k+x)*(y/x) > y)
		cout<<y;
	else
		cout<<(y/x+1)*x;
	return 0;
}
2025/1/5 21:09
加载中...