时钟问题
类型:程序题

题目说明

def fn(h1, m1 ,h2 ,m2 ):
    if(h2<15):
        ①
    else:
        hc=1
    th=         ②
    if(         ③        ):
        mc= th+1
    else:
        mc=th
    sc=        ④
    return (hc,mc,sc)
h=int(input("h="))
s=int(input("s="))
print(fn(8,0,h,s))

评分标准

  1. hc=0(3分)

  2. h2-h1(3分)

  3. m2>=15(3分)

  4. th*60+(m2-m1(3分)

代码编辑器 加载中...
留空使用题目默认限制
{{resultStatus.text}}
正在加载运行记录...
乐编题库AI助手
人工客服
微信扫码联系客服
历史对话
{{ s.title || '未命名对话' }}
{{ s.created_at }}
暂无历史对话
我能帮助你什么?