結果

問題 No.296 n度寝
ユーザー 37zigen37zigen
提出日時 2016-03-11 13:42:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 376 bytes
コンパイル時間 2,038 ms
コンパイル使用メモリ 74,080 KB
実行使用メモリ 57,776 KB
最終ジャッジ日時 2023-10-25 04:52:22
合計ジャッジ時間 5,166 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 131 ms
57,396 KB
testcase_04 AC 132 ms
57,480 KB
testcase_05 AC 134 ms
57,692 KB
testcase_06 AC 132 ms
57,432 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 132 ms
57,476 KB
testcase_11 AC 134 ms
57,432 KB
testcase_12 WA -
testcase_13 AC 133 ms
57,400 KB
testcase_14 AC 133 ms
57,396 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

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);
		System.out.println(sum%60);
		
	}
}
0