結果

問題 No.296 n度寝
ユーザー kuramubonn
提出日時 2023-02-02 09:54:10
言語 Java
(openjdk 23)
結果
AC  
実行時間 158 ms / 1,000 ms
コード長 309 bytes
コンパイル時間 2,230 ms
コンパイル使用メモリ 76,516 KB
実行使用メモリ 42,504 KB
最終ジャッジ日時 2024-07-02 00:22:49
合計ジャッジ時間 5,583 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt() , h = sc.nextInt() , m = sc.nextInt() , t = sc.nextInt();
		m +=  t * (n - 1);
		h += m / 60;
		h = h % 24;
		m = m % 60;
		System.out.print(h + "\n" + m + "\n");
	}
}
0