結果

問題 No.296 n度寝
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-13 23:00:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 2,205 ms
コンパイル使用メモリ 74,416 KB
実行使用メモリ 54,304 KB
最終ジャッジ日時 2024-04-28 17:39:27
合計ジャッジ時間 5,071 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
53,904 KB
testcase_01 AC 132 ms
53,964 KB
testcase_02 AC 134 ms
53,948 KB
testcase_03 AC 135 ms
54,044 KB
testcase_04 AC 121 ms
52,620 KB
testcase_05 AC 134 ms
54,096 KB
testcase_06 AC 133 ms
53,680 KB
testcase_07 AC 133 ms
53,908 KB
testcase_08 AC 138 ms
53,696 KB
testcase_09 AC 132 ms
53,960 KB
testcase_10 AC 134 ms
54,112 KB
testcase_11 AC 133 ms
53,936 KB
testcase_12 AC 135 ms
53,744 KB
testcase_13 AC 136 ms
54,304 KB
testcase_14 AC 134 ms
53,860 KB
testcase_15 AC 133 ms
53,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public 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();
		int now = h * 60 + m + t * (n - 1);
		System.out.printf("%d\n%d\n", now / 60 % 24, now % 60);
	}
}
0