結果

問題 No.296 n度寝
ユーザー Mcpu3Mcpu3
提出日時 2018-06-21 23:27:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 1,000 ms
コード長 295 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 72,616 KB
実行使用メモリ 57,104 KB
最終ジャッジ日時 2023-09-13 07:44:14
合計ジャッジ時間 5,488 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
56,608 KB
testcase_01 AC 146 ms
54,772 KB
testcase_02 AC 147 ms
56,980 KB
testcase_03 AC 145 ms
56,704 KB
testcase_04 AC 150 ms
56,832 KB
testcase_05 AC 146 ms
56,944 KB
testcase_06 AC 151 ms
56,740 KB
testcase_07 AC 146 ms
56,868 KB
testcase_08 AC 144 ms
57,040 KB
testcase_09 AC 150 ms
56,704 KB
testcase_10 AC 146 ms
56,656 KB
testcase_11 AC 145 ms
54,800 KB
testcase_12 AC 146 ms
56,492 KB
testcase_13 AC 145 ms
56,808 KB
testcase_14 AC 146 ms
56,828 KB
testcase_15 AC 148 ms
57,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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