結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2017-09-23 21:13:39 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 141 ms / 1,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 3,691 ms |
コンパイル使用メモリ | 74,672 KB |
実行使用メモリ | 54,616 KB |
最終ジャッジ日時 | 2024-11-14 04:29:33 |
合計ジャッジ時間 | 6,191 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import java.util.Scanner; public class No296 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] x = new int[4]; for (int i = 0 ; i< x.length ; i++) x[i] = sc.nextInt(); x[2] = x[2] + ((x[0] - 1) * x[3]); x[1] = (x[2] / 60) + x[1]; x[1] %= 24; x[2] %= 60; System.out.println(x[1]); System.out.println(x[2]); sc.close(); } }