結果

問題 No.296 n度寝
ユーザー tentententen
提出日時 2020-11-11 09:15:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 401 bytes
コンパイル時間 2,296 ms
コンパイル使用メモリ 71,444 KB
実行使用メモリ 56,332 KB
最終ジャッジ日時 2023-09-30 00:24:18
合計ジャッジ時間 5,223 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
55,504 KB
testcase_01 AC 124 ms
56,024 KB
testcase_02 AC 127 ms
55,492 KB
testcase_03 AC 127 ms
56,104 KB
testcase_04 AC 124 ms
56,332 KB
testcase_05 AC 122 ms
55,844 KB
testcase_06 AC 128 ms
55,700 KB
testcase_07 AC 127 ms
55,704 KB
testcase_08 AC 128 ms
55,812 KB
testcase_09 AC 126 ms
55,824 KB
testcase_10 AC 124 ms
56,160 KB
testcase_11 AC 124 ms
54,012 KB
testcase_12 AC 125 ms
56,104 KB
testcase_13 AC 124 ms
55,816 KB
testcase_14 AC 127 ms
55,756 KB
testcase_15 AC 133 ms
55,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int h = sc.nextInt();
        int m = sc.nextInt();
        int t = sc.nextInt();
        m += t * (n - 1);
        h += m / 60;
        m %= 60;
        h %= 24;
        System.out.println(h);
        System.out.println(m);
    }
}
0