結果

問題 No.296 n度寝
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-03-09 21:39:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 109 ms / 1,000 ms
コード長 484 bytes
コンパイル時間 2,202 ms
コンパイル使用メモリ 74,904 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-07-07 02:54:30
合計ジャッジ時間 4,018 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
53,988 KB
testcase_01 AC 105 ms
53,324 KB
testcase_02 AC 99 ms
53,088 KB
testcase_03 AC 104 ms
53,848 KB
testcase_04 AC 105 ms
54,036 KB
testcase_05 AC 109 ms
54,128 KB
testcase_06 AC 94 ms
52,800 KB
testcase_07 AC 106 ms
53,888 KB
testcase_08 AC 96 ms
53,000 KB
testcase_09 AC 96 ms
52,856 KB
testcase_10 AC 105 ms
54,048 KB
testcase_11 AC 93 ms
53,856 KB
testcase_12 AC 93 ms
52,452 KB
testcase_13 AC 105 ms
53,940 KB
testcase_14 AC 107 ms
54,380 KB
testcase_15 AC 95 ms
52,888 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