結果

問題 No.296 n度寝
ユーザー kano_town
提出日時 2015-11-13 22:18:15
言語 Java
(openjdk 23)
結果
AC  
実行時間 148 ms / 1,000 ms
コード長 377 bytes
コンパイル時間 3,008 ms
コンパイル使用メモリ 76,956 KB
実行使用メモリ 55,224 KB
最終ジャッジ日時 2024-07-06 22:28:39
合計ジャッジ時間 5,871 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

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