結果

問題 No.296 n度寝
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-10 15:23:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 1,000 ms
コード長 336 bytes
コンパイル時間 2,457 ms
コンパイル使用メモリ 73,836 KB
実行使用メモリ 41,328 KB
最終ジャッジ日時 2024-04-21 14:31:58
合計ジャッジ時間 5,281 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,328 KB
testcase_01 AC 131 ms
41,316 KB
testcase_02 AC 128 ms
41,232 KB
testcase_03 AC 130 ms
41,012 KB
testcase_04 AC 128 ms
41,116 KB
testcase_05 AC 131 ms
41,124 KB
testcase_06 AC 115 ms
40,024 KB
testcase_07 AC 129 ms
41,164 KB
testcase_08 AC 128 ms
41,132 KB
testcase_09 AC 128 ms
41,140 KB
testcase_10 AC 128 ms
41,088 KB
testcase_11 AC 129 ms
41,200 KB
testcase_12 AC 128 ms
41,224 KB
testcase_13 AC 127 ms
41,116 KB
testcase_14 AC 115 ms
39,856 KB
testcase_15 AC 127 ms
41,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int h = sc.nextInt();
		int m = sc.nextInt();
		int t = sc.nextInt();
		
		long time = (h*60) + m + (t*(n-1));
		System.out.println((time/60)%24);
		System.out.println(time%60);
	}
}
0