結果

問題 No.296 n度寝
ユーザー spaciaspacia
提出日時 2016-01-04 12:24:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 93 ms / 1,000 ms
コード長 574 bytes
コンパイル時間 4,647 ms
コンパイル使用メモリ 76,852 KB
実行使用メモリ 52,696 KB
最終ジャッジ日時 2023-09-21 08:18:16
合計ジャッジ時間 5,685 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
52,228 KB
testcase_01 AC 87 ms
52,348 KB
testcase_02 AC 85 ms
52,120 KB
testcase_03 AC 84 ms
52,104 KB
testcase_04 AC 80 ms
52,312 KB
testcase_05 AC 80 ms
52,580 KB
testcase_06 AC 82 ms
52,368 KB
testcase_07 AC 81 ms
52,096 KB
testcase_08 AC 80 ms
52,648 KB
testcase_09 AC 82 ms
52,288 KB
testcase_10 AC 81 ms
52,696 KB
testcase_11 AC 89 ms
52,420 KB
testcase_12 AC 80 ms
52,204 KB
testcase_13 AC 81 ms
52,204 KB
testcase_14 AC 93 ms
52,500 KB
testcase_15 AC 81 ms
52,184 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.math.*;

class Main {
	
	public static void out (Object o) {
		System.out.println(o);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		int n = Integer.parseInt(line[0]);
		int h = Integer.parseInt(line[1]);
		int m = Integer.parseInt(line[2]);
		int t = Integer.parseInt(line[3]);
		
		int time = (h * 60 + m + t * (n - 1)) % 1440;
		out((time / 60) + "\n" + (time % 60));
	}
}
0