結果

問題 No.296 n度寝
ユーザー ryusukeryusuke
提出日時 2021-02-18 00:30:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,636 KB
最終ジャッジ日時 2023-10-12 10:07:37
合計ジャッジ時間 2,360 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 74 ms
71,380 KB
testcase_04 AC 74 ms
71,288 KB
testcase_05 AC 74 ms
71,352 KB
testcase_06 AC 74 ms
71,492 KB
testcase_07 AC 75 ms
71,352 KB
testcase_08 AC 74 ms
71,136 KB
testcase_09 WA -
testcase_10 AC 73 ms
71,384 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 76 ms
71,068 KB
testcase_14 AC 75 ms
71,292 KB
testcase_15 AC 75 ms
71,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, h, m, t = map(int,input().split())
num = (n  - 1) * t
h += (num // 60)
h %= 24
m += (num % 60)
m %= 60
if m == 60:
    h += 1
    h %= 24
    m = 0
if h == 24:
    h = 0
print(h)
print(m)
0