結果

問題 No.296 n度寝
ユーザー YOSHIYOSHI
提出日時 2021-03-10 00:02:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 559 bytes
コンパイル時間 4,230 ms
コンパイル使用メモリ 74,648 KB
実行使用メモリ 36,948 KB
最終ジャッジ日時 2024-04-19 20:25:14
合計ジャッジ時間 5,214 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
36,796 KB
testcase_01 AC 52 ms
36,736 KB
testcase_02 AC 52 ms
36,816 KB
testcase_03 AC 51 ms
36,944 KB
testcase_04 AC 53 ms
36,728 KB
testcase_05 AC 53 ms
36,460 KB
testcase_06 AC 53 ms
36,912 KB
testcase_07 AC 52 ms
36,768 KB
testcase_08 AC 53 ms
36,716 KB
testcase_09 AC 52 ms
36,948 KB
testcase_10 AC 55 ms
36,628 KB
testcase_11 AC 53 ms
36,904 KB
testcase_12 AC 52 ms
36,716 KB
testcase_13 AC 52 ms
36,728 KB
testcase_14 AC 52 ms
36,932 KB
testcase_15 AC 55 ms
36,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000296_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] arr = br.readLine().split(" ");
		int n = Integer.parseInt(arr[0]);
		int h = Integer.parseInt(arr[1]);
		int m = Integer.parseInt(arr[2]);
		int t = Integer.parseInt(arr[3]);

		System.out.println((h + (m + (n - 1) * t) / 60) % 24);
		System.out.println((m + (n - 1) * t) % 60);
	}
}
0