結果

問題 No.296 n度寝
ユーザー youthfuldays072youthfuldays072
提出日時 2018-06-22 17:19:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 1,000 ms
コード長 390 bytes
コンパイル時間 3,580 ms
コンパイル使用メモリ 71,176 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2023-09-13 08:00:47
合計ジャッジ時間 5,028 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,708 KB
testcase_01 AC 127 ms
55,980 KB
testcase_02 AC 120 ms
53,592 KB
testcase_03 AC 121 ms
55,712 KB
testcase_04 AC 124 ms
56,160 KB
testcase_05 AC 120 ms
55,908 KB
testcase_06 AC 120 ms
56,044 KB
testcase_07 AC 120 ms
55,752 KB
testcase_08 AC 122 ms
56,052 KB
testcase_09 AC 119 ms
55,708 KB
testcase_10 AC 119 ms
55,900 KB
testcase_11 AC 120 ms
55,444 KB
testcase_12 AC 121 ms
56,080 KB
testcase_13 AC 122 ms
55,700 KB
testcase_14 AC 122 ms
56,048 KB
testcase_15 AC 123 ms
55,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Main main=new Main();
		main.run();
	}

	void run() {

		Scanner sc=new Scanner(System.in);

		int N=sc.nextInt();
		int H=sc.nextInt();
		int M=sc.nextInt();
		int T=sc.nextInt();

		int time=(N-1)*T;

		int res=H*60+M+time;

		System.out.println((res/60)%24);
		System.out.println(res%60);
	}
}


0