結果

問題 No.296 n度寝
ユーザー samplelpmassamplelpmas
提出日時 2016-12-20 09:33:58
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 483 bytes
コンパイル時間 1,905 ms
コンパイル使用メモリ 73,936 KB
実行使用メモリ 54,404 KB
最終ジャッジ日時 2024-05-08 08:31:40
合計ジャッジ時間 4,539 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 119 ms
41,152 KB
testcase_04 AC 107 ms
40,972 KB
testcase_05 AC 119 ms
41,136 KB
testcase_06 AC 119 ms
41,356 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 111 ms
41,192 KB
testcase_11 AC 120 ms
41,324 KB
testcase_12 WA -
testcase_13 AC 108 ms
40,856 KB
testcase_14 AC 108 ms
41,504 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