結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  fkwnw3_1243 | 
| 提出日時 | 2017-05-03 08:05:55 | 
| 言語 | Java (openjdk 23) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 56 ms / 1,000 ms | 
| コード長 | 694 bytes | 
| コンパイル時間 | 1,959 ms | 
| コンパイル使用メモリ | 74,132 KB | 
| 実行使用メモリ | 50,344 KB | 
| 最終ジャッジ日時 | 2024-09-14 06:59:47 | 
| 合計ジャッジ時間 | 3,564 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge6 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;
public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        int N = Integer.parseInt(inputs[0]);
        int H = Integer.parseInt(inputs[1]);
        int M = Integer.parseInt(inputs[2]);
        int T = Integer.parseInt(inputs[3]);
        int minutes = 60 * H + M;
        minutes += T * (N - 1);
        System.out.println((minutes / 60) % 24);
        System.out.println(minutes % 60);
    }
}
            
            
            
        