結果

問題 No.296 n度寝
ユーザー jonki324
提出日時 2018-06-06 16:49:39
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 436 bytes
コンパイル時間 2,060 ms
コンパイル使用メモリ 74,580 KB
実行使用メモリ 41,564 KB
最終ジャッジ日時 2024-06-30 10:16:00
合計ジャッジ時間 4,910 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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