1、x, n = map(int, input().split())
读取起始星期 x、总天数 n。
2、total = 0:初始化总路程。
3、for k in range(n):
循环 n 次,代表依次统计 n 天
4、week = (x - 1 + k) % 7 + 1
计算当天是星期几:x-1转为 0 起始,加上偏移 k,对 7 取模,再转回 1~7。
5、if 1 <= week <= 5: total += 250
周一至周五,当天游泳 250 公里。
6、print(total)
输出总里程。