結果

問題 No.296 n度寝
ユーザー misk703misk703
提出日時 2018-05-02 08:56:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 421 bytes
コンパイル時間 3,508 ms
コンパイル使用メモリ 73,916 KB
実行使用メモリ 58,708 KB
最終ジャッジ日時 2023-09-10 08:50:27
合計ジャッジ時間 6,953 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 145 ms
56,484 KB
testcase_04 AC 145 ms
56,544 KB
testcase_05 AC 145 ms
56,412 KB
testcase_06 AC 148 ms
56,684 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 147 ms
56,652 KB
testcase_11 AC 147 ms
56,320 KB
testcase_12 WA -
testcase_13 AC 145 ms
56,600 KB
testcase_14 AC 145 ms
56,584 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class cade {

    public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int[] A = new int[4];

	for(int i=0;i<4;i++){
	    A[i] = Integer.parseInt(s.next());
	}

	int h = A[1] * 60;

	int maxmin = h + A[2];

	for(int i=0;i<A[0] -1 ;i++){
	    maxmin += A[3];
	}
	int ansh = maxmin / 60;
	int ansm = maxmin % 60;
	System.out.println(ansh + "\n" + ansm);
    }

}
0