結果

問題 No.296 n度寝
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-13 23:00:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 308 bytes
コンパイル時間 3,442 ms
コンパイル使用メモリ 71,676 KB
実行使用メモリ 56,188 KB
最終ジャッジ日時 2023-08-11 00:29:27
合計ジャッジ時間 5,027 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,088 KB
testcase_01 AC 116 ms
55,812 KB
testcase_02 AC 121 ms
56,080 KB
testcase_03 AC 117 ms
55,876 KB
testcase_04 AC 117 ms
55,772 KB
testcase_05 AC 117 ms
56,112 KB
testcase_06 AC 115 ms
56,024 KB
testcase_07 AC 114 ms
56,144 KB
testcase_08 AC 116 ms
55,744 KB
testcase_09 AC 118 ms
55,948 KB
testcase_10 AC 121 ms
55,908 KB
testcase_11 AC 121 ms
56,032 KB
testcase_12 AC 120 ms
56,188 KB
testcase_13 AC 117 ms
55,796 KB
testcase_14 AC 118 ms
56,132 KB
testcase_15 AC 117 ms
56,064 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