結果

問題 No.296 n度寝
ユーザー ぴろずぴろず
提出日時 2015-11-06 22:31:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 339 bytes
コンパイル時間 3,042 ms
コンパイル使用メモリ 71,396 KB
実行使用メモリ 55,872 KB
最終ジャッジ日時 2023-09-21 03:43:17
合計ジャッジ時間 5,821 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,828 KB
testcase_01 AC 125 ms
55,872 KB
testcase_02 AC 125 ms
55,648 KB
testcase_03 AC 126 ms
55,384 KB
testcase_04 AC 127 ms
55,620 KB
testcase_05 AC 126 ms
55,584 KB
testcase_06 AC 125 ms
55,612 KB
testcase_07 AC 127 ms
55,564 KB
testcase_08 AC 126 ms
55,784 KB
testcase_09 AC 127 ms
55,856 KB
testcase_10 AC 127 ms
55,544 KB
testcase_11 AC 127 ms
53,612 KB
testcase_12 AC 127 ms
55,864 KB
testcase_13 AC 126 ms
55,592 KB
testcase_14 AC 129 ms
55,276 KB
testcase_15 AC 124 ms
55,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no298;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt() * 60 + sc.nextInt();
		int t = sc.nextInt();
		m += t * (n - 1);
		m %= 24 * 60;
		System.out.println(m / 60);
		System.out.println(m % 60);
	}

}
0