結果
問題 | No.296 n度寝 |
ユーザー | kenji_shioya |
提出日時 | 2016-06-02 18:32:03 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 3,111 ms |
コンパイル使用メモリ | 74,128 KB |
実行使用メモリ | 56,360 KB |
最終ジャッジ日時 | 2024-04-16 23:17:11 |
合計ジャッジ時間 | 6,082 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 108 ms
41,352 KB |
testcase_04 | AC | 121 ms
41,456 KB |
testcase_05 | AC | 127 ms
41,280 KB |
testcase_06 | AC | 126 ms
41,612 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 117 ms
41,544 KB |
testcase_11 | AC | 121 ms
41,440 KB |
testcase_12 | WA | - |
testcase_13 | AC | 110 ms
41,520 KB |
testcase_14 | AC | 123 ms
41,828 KB |
testcase_15 | WA | - |
ソースコード
import java.util.*; public class Exercise50{ 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(); int sum = t * (n - 1) + m; h += sum / 60; m = sum % 60; System.out.println(h); System.out.println(m); } }