結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2015-11-06 22:31:04 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 136 ms / 1,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 2,067 ms |
コンパイル使用メモリ | 74,312 KB |
実行使用メモリ | 55,968 KB |
最終ジャッジ日時 | 2024-07-06 22:22:31 |
合計ジャッジ時間 | 5,263 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
package no298;import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int n = sc.nextInt();int m = sc.nextInt() * 60 + sc.nextInt();int t = sc.nextInt();m += t * (n - 1);m %= 24 * 60;System.out.println(m / 60);System.out.println(m % 60);}}