結果

問題 No.296 n度寝
ユーザー kou6839
提出日時 2015-11-09 14:23:56
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 369 bytes
コンパイル時間 2,090 ms
コンパイル使用メモリ 73,848 KB
実行使用メモリ 54,472 KB
最終ジャッジ日時 2024-09-13 14:14:56
合計ジャッジ時間 5,015 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #


import java.util.*;

public 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 r = sc.nextInt();
		
		int ans_h = h;
		int ans_m = m+(n-1)*r;
		ans_h += (ans_m/60);
		ans_m %= 60;
		System.out.println(ans_h);
		System.out.println(ans_m);
	}
}
0