結果

問題 No.296 n度寝
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-23 21:13:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 384 bytes
コンパイル時間 3,379 ms
コンパイル使用メモリ 74,800 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2024-04-26 15:44:40
合計ジャッジ時間 6,192 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,364 KB
testcase_01 AC 131 ms
53,836 KB
testcase_02 AC 130 ms
53,852 KB
testcase_03 AC 132 ms
53,968 KB
testcase_04 AC 131 ms
54,144 KB
testcase_05 AC 132 ms
54,084 KB
testcase_06 AC 130 ms
53,984 KB
testcase_07 AC 130 ms
54,048 KB
testcase_08 AC 131 ms
54,136 KB
testcase_09 AC 116 ms
52,556 KB
testcase_10 AC 130 ms
53,908 KB
testcase_11 AC 131 ms
53,912 KB
testcase_12 AC 134 ms
54,260 KB
testcase_13 AC 118 ms
52,668 KB
testcase_14 AC 129 ms
53,896 KB
testcase_15 AC 129 ms
54,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No296 {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] x = new int[4];
		for (int i = 0 ; i< x.length ; i++)
			x[i] = sc.nextInt();
		x[2] = x[2] + ((x[0] - 1) * x[3]);
		x[1] = (x[2] / 60) + x[1];
		x[1] %= 24;
		x[2] %= 60;
		System.out.println(x[1]);
		System.out.println(x[2]);
		sc.close();
	}
}
0