結果

問題 No.296 n度寝
ユーザー fal_rndfal_rnd
提出日時 2017-07-14 17:55:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 169 ms / 1,000 ms
コード長 237 bytes
コンパイル時間 2,239 ms
コンパイル使用メモリ 76,552 KB
実行使用メモリ 42,612 KB
最終ジャッジ日時 2024-04-16 19:50:11
合計ジャッジ時間 5,595 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
42,612 KB
testcase_01 AC 163 ms
42,396 KB
testcase_02 AC 164 ms
42,376 KB
testcase_03 AC 162 ms
42,284 KB
testcase_04 AC 162 ms
42,296 KB
testcase_05 AC 164 ms
42,564 KB
testcase_06 AC 163 ms
42,336 KB
testcase_07 AC 162 ms
42,500 KB
testcase_08 AC 160 ms
42,356 KB
testcase_09 AC 160 ms
42,408 KB
testcase_10 AC 169 ms
42,224 KB
testcase_11 AC 165 ms
42,444 KB
testcase_12 AC 164 ms
42,332 KB
testcase_13 AC 161 ms
42,260 KB
testcase_14 AC 163 ms
42,196 KB
testcase_15 AC 160 ms
42,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class C{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		long n=s.nextInt(),h=s.nextInt(),m=s.nextInt(),t=s.nextInt(),r=h*60+m+t*(n-1);
		System.out.println(r%1440/60+"\n"+r%60);
	}
}
0