結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2018-02-10 15:16:05 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 1,987 ms |
コンパイル使用メモリ | 74,148 KB |
実行使用メモリ | 56,456 KB |
最終ジャッジ日時 | 2024-10-13 13:04:47 |
合計ジャッジ時間 | 4,375 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 9 |
ソースコード
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); int t = sc.nextInt(); int time = (n-1)*t; h += time/60; m += time%60; System.out.println(h); System.out.println(m); } }