結果

問題 No.296 n度寝
ユーザー tubo28tubo28
提出日時 2015-11-13 21:05:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 430 bytes
コンパイル時間 2,293 ms
コンパイル使用メモリ 70,744 KB
実行使用メモリ 39,852 KB
最終ジャッジ日時 2023-09-21 03:49:08
合計ジャッジ時間 5,285 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
39,380 KB
testcase_01 AC 121 ms
39,268 KB
testcase_02 AC 122 ms
39,296 KB
testcase_03 AC 123 ms
39,428 KB
testcase_04 AC 122 ms
39,044 KB
testcase_05 AC 122 ms
39,772 KB
testcase_06 AC 126 ms
39,392 KB
testcase_07 AC 122 ms
39,132 KB
testcase_08 AC 121 ms
39,128 KB
testcase_09 AC 118 ms
39,416 KB
testcase_10 AC 123 ms
39,168 KB
testcase_11 AC 128 ms
39,628 KB
testcase_12 AC 124 ms
39,788 KB
testcase_13 AC 127 ms
39,852 KB
testcase_14 AC 123 ms
39,348 KB
testcase_15 AC 121 ms
39,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package testJava;

import java.util.*;
public class Main {
	public static void main(String [] args){
		try {(new Main()).run();} catch(Exception e){}
	}
	static Scanner cin;
	void run() {
		cin = new Scanner(System.in);
		int N = cin.nextInt();
		int H = cin.nextInt();
		int M = cin.nextInt();
		int T = cin.nextInt();
		M += (N-1) * T;
		H += M / 60;
		M %= 60;
		H %= 24;
		System.out.println(H);
		System.out.println(M);
	}
}
0