結果
問題 | No.296 n度寝 |
ユーザー | swyroak |
提出日時 | 2021-08-11 22:29:56 |
言語 | JavaScript (node v21.7.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 508 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 7,096 KB |
実行使用メモリ | 37,840 KB |
最終ジャッジ日時 | 2023-10-26 00:27:22 |
合計ジャッジ時間 | 3,835 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 69 ms
37,812 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
ソースコード
"use strict"; //テストの入力を受け取る function Main(input) { const [N, H, M, T] = input.split(" ").map(i => Number(i)); const AlertTime = new Date(); AlertTime.setHours(H); AlertTime.setMinutes(M); AlertTime.setSeconds(0); AlertTime.setMinutes(AlertTime.getMinutes() + T * N); console.log(AlertTime.getHours() + "\n" + AlertTime.getMinutes()); } Main(require("fs").readFileSync("/dev/stdin", "utf8")); //Main("5 12 5 5"); //# sourceMappingURL=index.js.map