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: |
|
|
|---|

