結果

問題 No.296 n度寝
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-03-09 21:39:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 484 bytes
コンパイル時間 1,935 ms
コンパイル使用メモリ 72,528 KB
実行使用メモリ 57,844 KB
最終ジャッジ日時 2023-09-21 08:35:45
合計ジャッジ時間 4,800 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,836 KB
testcase_01 AC 125 ms
55,716 KB
testcase_02 AC 122 ms
56,020 KB
testcase_03 AC 123 ms
55,984 KB
testcase_04 AC 123 ms
55,896 KB
testcase_05 AC 120 ms
55,796 KB
testcase_06 AC 123 ms
56,400 KB
testcase_07 AC 123 ms
56,264 KB
testcase_08 AC 121 ms
56,064 KB
testcase_09 AC 120 ms
55,772 KB
testcase_10 AC 122 ms
55,928 KB
testcase_11 AC 121 ms
55,796 KB
testcase_12 AC 122 ms
55,944 KB
testcase_13 AC 122 ms
57,844 KB
testcase_14 AC 122 ms
55,968 KB
testcase_15 AC 122 ms
55,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int h = in.nextInt();
        int m = in.nextInt();
        int t = in.nextInt();

        int at = h * 60 + m + t * (n - 1);
        System.out.println(at / 60 % 24);
        System.out.println(at % 60);

        in.close();
    }
}
0