社区讨论
80分求助(已经试了很多次了)
B3669[语言月赛202210] 购物节参与者 4已保存回复 7
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 7 条
- 当前快照
- 1 份
- 快照标识符
- @m1j9evp8
- 此快照首次捕获于
- 2024/09/26 20:17 去年
- 此快照最后确认于
- 2024/09/26 21:56 去年
CPP
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,n;
cin>>x>>y>>n;
if((x-1)*10<(y-1)) cout<<(x-1)*n<<endl;
else cout<<(n/10)*(y-1)+(n%10)*(x-1)<<endl;
return 0;
}
评测记录:https://www.luogu.com.cn/record/178514243
回复
共 7 条回复,欢迎继续交流。
正在加载回复...