結果

問題 No.296 n度寝
ユーザー Cavasiro
提出日時 2020-04-16 23:00:12
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 327 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 73,744 KB
実行使用メモリ 41,364 KB
最終ジャッジ日時 2024-10-03 03:11:23
合計ジャッジ時間 4,952 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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();
		int h = sc.nextInt();
		int m = sc.nextInt();
		int t = sc.nextInt();
		m += ((n-1)*t);
		h += (m/60);
		m %= 60;
		h %= 24;
		System.out.println(h);
		System.out.println(m);
	}
}
0