結果

問題 No.296 n度寝
ユーザー springspring
提出日時 2019-06-12 17:49:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 422 bytes
コンパイル時間 2,051 ms
コンパイル使用メモリ 74,032 KB
実行使用メモリ 54,344 KB
最終ジャッジ日時 2024-04-19 09:05:01
合計ジャッジ時間 4,807 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 128 ms
54,252 KB
testcase_04 AC 125 ms
54,132 KB
testcase_05 AC 126 ms
54,292 KB
testcase_06 AC 125 ms
53,884 KB
testcase_07 AC 114 ms
52,992 KB
testcase_08 AC 113 ms
52,932 KB
testcase_09 WA -
testcase_10 AC 127 ms
54,132 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 126 ms
54,124 KB
testcase_14 AC 130 ms
54,204 KB
testcase_15 AC 128 ms
54,264 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();
		int H = sc.nextInt();
		int M = sc.nextInt();
		int T = sc.nextInt();
		sc.close();
		int sleepMin = (N-1)*T;
		M = (M+sleepMin)%60;
		int sleepHour = (sleepMin/60);
		H = (H+sleepHour)%24;
		System.out.println(H);
		System.out.println(M);

	}// mainmethod

} // class
0