結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-11 22:29:56 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 508 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 41,716 KB |
| 最終ジャッジ日時 | 2024-09-25 08:24:49 |
| 合計ジャッジ時間 | 3,603 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 15 |
ソースコード
"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