結果
問題 | No.296 n度寝 |
ユーザー | jonki324 |
提出日時 | 2018-06-06 16:49:39 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 436 bytes |
コンパイル時間 | 5,969 ms |
コンパイル使用メモリ | 71,140 KB |
実行使用メモリ | 58,288 KB |
最終ジャッジ日時 | 2023-09-12 22:44:49 |
合計ジャッジ時間 | 8,414 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 123 ms
55,808 KB |
testcase_04 | AC | 120 ms
55,280 KB |
testcase_05 | AC | 120 ms
55,856 KB |
testcase_06 | AC | 120 ms
55,520 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 123 ms
55,728 KB |
testcase_11 | AC | 124 ms
55,516 KB |
testcase_12 | WA | - |
testcase_13 | AC | 127 ms
55,700 KB |
testcase_14 | AC | 123 ms
55,544 KB |
testcase_15 | WA | - |
ソースコード
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int h = scan.nextInt(); int m = scan.nextInt(); int t = scan.nextInt(); int tmp = (n - 1) * t + m; h = h + (tmp / 60); m = tmp % 60; System.out.println(h); System.out.println(m); scan.close(); } }