結果

問題 No.296 n度寝
ユーザー あかりきあかりき
提出日時 2021-05-24 06:33:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 1,000 ms
コード長 152 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 60,252 KB
最終ジャッジ日時 2024-04-20 16:35:26
合計ジャッジ時間 1,489 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
58,528 KB
testcase_01 AC 56 ms
58,524 KB
testcase_02 AC 42 ms
60,252 KB
testcase_03 AC 34 ms
53,052 KB
testcase_04 AC 33 ms
53,068 KB
testcase_05 AC 34 ms
53,076 KB
testcase_06 AC 35 ms
51,948 KB
testcase_07 AC 106 ms
59,680 KB
testcase_08 AC 43 ms
58,976 KB
testcase_09 AC 35 ms
52,736 KB
testcase_10 AC 33 ms
52,644 KB
testcase_11 AC 34 ms
52,384 KB
testcase_12 AC 34 ms
52,556 KB
testcase_13 AC 34 ms
53,416 KB
testcase_14 AC 33 ms
53,408 KB
testcase_15 AC 34 ms
52,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,h,m,t=map(int,input().split())
for i in range(n-1):
  m+=t
  if m>=60:
    while m>=60:
      h+=1
      m-=60
  if h>=24:
    h-=24
print(h)
print(m)
0