0
点赞
收藏
分享

微信扫一扫

P1424 小鱼的航程(改进版) -- python3实现

f12b11374cba 2022-02-01 阅读 57

https://www.luogu.com.cn/problem/P1424

"""
P1424 小鱼的航程(改进版)
https://www.luogu.com.cn/problem/P1424
"""

ans=0

x,n=map(int,input().split())

for i in range(n):

            if x!=6 and x!=7:
                        ans+=250
            if x==7:
                        x=1
            else:
                        x+=1

print(ans)


举报

相关推荐

0 条评论