結果

問題 No.296 n度寝
ユーザー samplelpmas
提出日時 2016-12-20 09:43:20
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 488 bytes
コンパイル時間 2,051 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 54,368 KB
最終ジャッジ日時 2024-12-14 11:07:57
合計ジャッジ時間 5,051 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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 % 24;
        minute = minute % 60;

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

    }

}
0