結果

問題 No.651 E869120 and Driving
ユーザー takeytakey
提出日時 2018-02-28 15:27:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 590 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,952 KB
実行使用メモリ 10,148 KB
最終ジャッジ日時 2023-10-22 07:52:55
合計ジャッジ時間 980 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,148 KB
testcase_01 AC 27 ms
10,148 KB
testcase_02 AC 29 ms
10,148 KB
testcase_03 AC 28 ms
10,148 KB
testcase_04 AC 28 ms
10,148 KB
testcase_05 AC 28 ms
10,148 KB
testcase_06 AC 28 ms
10,148 KB
testcase_07 AC 28 ms
10,148 KB
testcase_08 AC 28 ms
10,148 KB
testcase_09 AC 29 ms
10,148 KB
権限があれば一括ダウンロードができます

ソースコード

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