結果

問題 No.296 n度寝
ユーザー 37zigen37zigen
提出日時 2016-03-11 13:43:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 1,000 ms
コード長 381 bytes
コンパイル時間 2,061 ms
コンパイル使用メモリ 71,432 KB
実行使用メモリ 56,396 KB
最終ジャッジ日時 2023-09-21 08:21:50
合計ジャッジ時間 5,054 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,700 KB
testcase_01 AC 125 ms
55,876 KB
testcase_02 AC 129 ms
55,860 KB
testcase_03 AC 126 ms
55,404 KB
testcase_04 AC 126 ms
55,652 KB
testcase_05 AC 125 ms
55,412 KB
testcase_06 AC 132 ms
55,880 KB
testcase_07 AC 126 ms
55,968 KB
testcase_08 AC 125 ms
55,668 KB
testcase_09 AC 128 ms
55,716 KB
testcase_10 AC 127 ms
56,396 KB
testcase_11 AC 127 ms
55,428 KB
testcase_12 AC 124 ms
55,992 KB
testcase_13 AC 125 ms
55,692 KB
testcase_14 AC 124 ms
55,988 KB
testcase_15 AC 126 ms
55,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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