2 条题解
- 1
信息
- ID
- 4394
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- (无)
- 递交数
- 103
- 已通过
- 24
- 上传者
#include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin >> x >> y; if (x == y){ cout << x * 90; }else if(x > y){ cout << y * 90 + 60 * (x - y); }else { cout << x * 90 + 40 * (y - x); } return 0; }
注册一个 JMYSOJ 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。