結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  matsuyoshi30 | 
| 提出日時 | 2017-03-09 21:39:55 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                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 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
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();
    }
}
            
            
            
        