#P1424. 小鱼的航程(改进版)
小鱼的航程(改进版)
Description
There is a little fish that swims kilometers every weekday and rests on weekends (two-day weekend). Starting from day of the week, after days, how many kilometers has the little fish swum in total?
Input Format
Two positive integers , meaning starting from day of the week and continuing for days.
Output Format
Output a single integer, the total number of kilometers the little fish has swum.
3 10
2000
Hint
The testdata guarantees , .
Translated by ChatGPT 5
京公网安备 11011102002149号