結果

問題 No.296 n度寝
ユーザー kuramubonnkuramubonn
提出日時 2023-02-02 09:54:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 1,000 ms
コード長 309 bytes
コンパイル時間 3,106 ms
コンパイル使用メモリ 72,508 KB
実行使用メモリ 57,164 KB
最終ジャッジ日時 2023-09-14 17:14:56
合計ジャッジ時間 5,973 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
56,744 KB
testcase_01 AC 155 ms
56,912 KB
testcase_02 AC 156 ms
56,544 KB
testcase_03 AC 155 ms
56,724 KB
testcase_04 AC 156 ms
56,928 KB
testcase_05 AC 156 ms
56,528 KB
testcase_06 AC 154 ms
57,112 KB
testcase_07 AC 154 ms
56,796 KB
testcase_08 AC 160 ms
56,704 KB
testcase_09 AC 152 ms
56,752 KB
testcase_10 AC 151 ms
56,596 KB
testcase_11 AC 151 ms
57,164 KB
testcase_12 AC 151 ms
56,820 KB
testcase_13 AC 153 ms
56,588 KB
testcase_14 AC 157 ms
56,984 KB
testcase_15 AC 153 ms
56,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt() , h = sc.nextInt() , m = sc.nextInt() , t = sc.nextInt();
		m +=  t * (n - 1);
		h += m / 60;
		h = h % 24;
		m = m % 60;
		System.out.print(h + "\n" + m + "\n");
	}
}
0