結果
問題 | No.296 n度寝 |
ユーザー | kou6839 |
提出日時 | 2015-11-09 14:23:56 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 2,618 ms |
コンパイル使用メモリ | 70,844 KB |
実行使用メモリ | 56,244 KB |
最終ジャッジ日時 | 2023-10-11 15:25:58 |
合計ジャッジ時間 | 5,014 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 127 ms
55,796 KB |
testcase_04 | AC | 126 ms
55,832 KB |
testcase_05 | AC | 126 ms
55,592 KB |
testcase_06 | AC | 126 ms
55,744 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 125 ms
55,708 KB |
testcase_11 | AC | 125 ms
55,524 KB |
testcase_12 | WA | - |
testcase_13 | AC | 126 ms
55,704 KB |
testcase_14 | AC | 127 ms
55,904 KB |
testcase_15 | WA | - |
ソースコード
import java.util.*; public class Main { 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 r = sc.nextInt(); int ans_h = h; int ans_m = m+(n-1)*r; ans_h += (ans_m/60); ans_m %= 60; System.out.println(ans_h); System.out.println(ans_m); } }