結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2015-11-06 22:25:22 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 130 ms / 1,000 ms |
コード長 | 491 bytes |
コンパイル時間 | 3,378 ms |
コンパイル使用メモリ | 74,844 KB |
実行使用メモリ | 54,500 KB |
最終ジャッジ日時 | 2024-07-06 22:19:20 |
合計ジャッジ時間 | 6,045 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import java.util.Scanner;public class Main_yukicoder296 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int n = sc.nextInt();int h = sc.nextInt();int m = sc.nextInt();int t = sc.nextInt();long ret = m + 60 * h;long tmp = (long)(n - 1) * t;ret += tmp;ret %= 1440;System.out.println(ret / 60);System.out.println(ret % 60);sc.close();}}