結果

問題 No.296 n度寝
ユーザー shinwisteriashinwisteria
提出日時 2018-02-16 23:14:49
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 428 bytes
コンパイル時間 3,619 ms
コンパイル使用メモリ 73,832 KB
実行使用メモリ 58,732 KB
最終ジャッジ日時 2023-09-05 09:56:49
合計ジャッジ時間 7,199 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
54,724 KB
testcase_01 AC 151 ms
56,896 KB
testcase_02 WA -
testcase_03 AC 151 ms
56,588 KB
testcase_04 AC 150 ms
57,016 KB
testcase_05 AC 154 ms
56,756 KB
testcase_06 AC 152 ms
56,756 KB
testcase_07 AC 151 ms
56,524 KB
testcase_08 AC 152 ms
56,872 KB
testcase_09 AC 150 ms
56,792 KB
testcase_10 AC 150 ms
56,560 KB
testcase_11 AC 152 ms
56,916 KB
testcase_12 WA -
testcase_13 AC 151 ms
56,520 KB
testcase_14 AC 152 ms
56,524 KB
testcase_15 AC 152 ms
56,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con296 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt() , H = s.nextInt() , M = s.nextInt() , T = s.nextInt();
		s.close();

		H = (H + (T*(N-1)) /60) % 24;
		if((M = M + (T*(N-1)) %60) > 59){
			H++;
		}
		M = M % 60;
		System.out.println(H + "\n" + M);

	}

}
0