結果

問題 No.296 n度寝
ユーザー samplelpmassamplelpmas
提出日時 2016-12-20 09:33:58
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 3,011 ms
コンパイル使用メモリ 72,364 KB
実行使用メモリ 58,396 KB
最終ジャッジ日時 2023-08-21 03:02:50
合計ジャッジ時間 6,295 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 124 ms
55,996 KB
testcase_04 AC 123 ms
55,644 KB
testcase_05 AC 121 ms
55,716 KB
testcase_06 AC 122 ms
56,064 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 122 ms
55,992 KB
testcase_11 AC 124 ms
55,916 KB
testcase_12 WA -
testcase_13 AC 121 ms
55,720 KB
testcase_14 AC 122 ms
56,364 KB
testcase_15 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int SLEEP_NUM = sc.nextInt();

        int hour = sc.nextInt();
        int minute = sc.nextInt();

        int TIME_INTERVAL = sc.nextInt();

        minute += (SLEEP_NUM - 1) * TIME_INTERVAL;

        hour += minute / 60;
        minute = minute % 60;

        System.out.println(hour);
        System.out.println(minute);

    }

}
0