python新手求助,为什么不输出结果?
  • 板块B2048 计算邮资
  • 楼主SISULeo
  • 当前回复3
  • 已保存回复3
  • 发布时间2022/11/10 23:22
  • 上次更新2023/10/27 03:27:44
查看原帖
python新手求助,为什么不输出结果?
801502
SISULeo楼主2022/11/10 23:22
x,c = input().split()
int(x)
y = True
n = False
overfee = 4
ans = 8
if c == n:
    if x <= 1000:
        print(ans)
    elif x > 1000:
        over = x - 1000
        while over >= 0:
            ans = ans + 4
            over = over - 500
        print(ans)
elif c == y:
    ans = ans + 5
    if x <= 1000:
        print(ans)
    elif x > 1000:
        over = x - 1000
        while over >= 0:
            ans = ans + 4
            over = over - 500
        print(ans)
2022/11/10 23:22
加载中...