結果

問題 No.651 E869120 and Driving
ユーザー takeytakey
提出日時 2018-02-28 15:27:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 590 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-22 08:56:35
合計ジャッジ時間 875 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#-*- coding:utf-8 -*-

if __name__ == "__main__":
  # 時速100km = 分速(100/60)km
  v = 100/60
  now_h = 10
  now_m = 0
  a = int(input())
  # 着くのに何時間何分かかるの?
  ellapsed_h = 0
  ellapsed_m = a/v  # 経過分
  while 1:
    if ellapsed_m >= 60:
      ellapsed_m -= 60
      ellapsed_h += 1
      continue
    break
  # 結局何時に着くの?
  arrived_h = now_h + ellapsed_h
  arrived_m = now_m + ellapsed_m
  while 1:
    if arrived_h >= 24:
      arrived_h -= 24
      continue
    break
  print("{0:02d}:{1:02d}".format(int(arrived_h), int(arrived_m)))
0