結果

問題 No.296 n度寝
ユーザー QED0302
提出日時 2018-09-14 20:06:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 298 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-06 04:14:41
合計ジャッジ時間 1,195 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
	n,h,m,t = map(int,input().split())
	time_total = 0
	time_total += h*60
	time_total += m #時間の初期化

	time_total += (n-1)*t


	result_hour = (time_total // 60) % 24
	result_minute = time_total % 60

	print(result_hour)
	print(result_minute)


if __name__ == '__main__':
	main()
0