結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2018-01-20 15:59:32 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 54 ms / 1,000 ms |
コード長 | 697 bytes |
コンパイル時間 | 2,900 ms |
コンパイル使用メモリ | 74,572 KB |
実行使用メモリ | 37,296 KB |
最終ジャッジ日時 | 2024-12-25 03:03:23 |
合計ジャッジ時間 | 4,437 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
package me.yukicoder.lv1; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.time.LocalTime; public class No0296 { public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in));) { String[] str = br.readLine().split(" "); int n = Integer.parseInt(str[0]); int h = Integer.parseInt(str[1]); int m = Integer.parseInt(str[2]); int t = Integer.parseInt(str[3]); LocalTime time = LocalTime.of(h, m).plusMinutes((n - 1) * t); System.out.println(time.getHour()); System.out.println(time.getMinute()); } catch (IOException e) { e.printStackTrace(); } } }