社区讨论
大神为啥WA第二个点?数据是7和543543
P1424小鱼的航程(改进版)参与者 3已保存回复 8
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 8 条
- 当前快照
- 1 份
- 快照标识符
- @mi868v5v
- 此快照首次捕获于
- 2025/11/21 09:18 4 个月前
- 此快照最后确认于
- 2025/11/21 09:18 4 个月前
CPP
#include <iostream>
using namespace std;
long long n, x,decday,total;
int main()
{
cin >> x >> n;
if (x==7 || x== 6)
{
decday = 2 * ((n - (8 - x)) / 7) + 8 - x;
total = 250 * (n - decday);
cout << total;
}
else
{
decday = 2 * ((n - (8 - x)) / 7) + 2;
total = 250 * (n - decday);
cout << total;
}
return 0;
}
回复
共 8 条回复,欢迎继续交流。
正在加载回复...