Skip to content
On this page

01_Expr_06.py

WARNING

โค้ดกาวมากครับ อย่าลอกเลย 😭😭😭

ทำเองเถอะนะครับ จะได้ทำข้อสอบได้ 🥲🥲🥲

py
from datetime import timedelta


def ():
    return int(input())


sh = ()
sm = ()
ss = ()

eh = ()
em = ()
es = ()

start = timedelta(hours=sh, minutes=sm, seconds=ss)
end = timedelta(hours=eh, minutes=em, seconds=es)

if start < end:
    start += timedelta(days=1)

timediff = end - start

print("{}:{}:{}".format(timediff.seconds // 3600 %
      60, timediff.seconds // 60 % 60, timediff.seconds % 60))

People who plagiarize Com Prog HW:

People who do Com Prog HW by themself:

Released under the MIT License