結果
問題 | No.296 n度寝 |
ユーザー | Tsukasa_Type |
提出日時 | 2018-02-10 15:16:05 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 2,066 ms |
コンパイル使用メモリ | 74,056 KB |
実行使用メモリ | 41,468 KB |
最終ジャッジ日時 | 2024-04-21 14:20:08 |
合計ジャッジ時間 | 5,060 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 131 ms
41,356 KB |
testcase_04 | AC | 129 ms
41,092 KB |
testcase_05 | AC | 131 ms
41,144 KB |
testcase_06 | AC | 155 ms
41,188 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 129 ms
41,096 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 131 ms
41,244 KB |
testcase_14 | AC | 132 ms
41,192 KB |
testcase_15 | WA | - |
ソースコード
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); int t = sc.nextInt(); int time = (n-1)*t; h += time/60; m += time%60; System.out.println(h); System.out.println(m); } }