結果
問題 | No.296 n度寝 |
ユーザー | yu_017 |
提出日時 | 2019-02-03 09:53:25 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 4,762 ms |
コンパイル使用メモリ | 72,152 KB |
実行使用メモリ | 58,160 KB |
最終ジャッジ日時 | 2023-08-22 01:41:30 |
合計ジャッジ時間 | 5,977 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 121 ms
56,032 KB |
testcase_04 | AC | 119 ms
56,148 KB |
testcase_05 | AC | 117 ms
56,012 KB |
testcase_06 | AC | 118 ms
56,112 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 117 ms
56,416 KB |
testcase_11 | AC | 116 ms
55,796 KB |
testcase_12 | WA | - |
testcase_13 | AC | 117 ms
55,916 KB |
testcase_14 | AC | 116 ms
56,316 KB |
testcase_15 | WA | - |
ソースコード
import java.util.Scanner; public class A000296 { 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(); sc.close(); int rh = h; int rm = m; rh+=((n-1)*t+m)/60; rm =((n-1)*t+m)%60; System.out.println(rh); System.out.println(rm); } }