結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-11 22:29:56 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 508 bytes |
| 記録 | |
| コンパイル時間 | 49 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 53,368 KB |
| 最終ジャッジ日時 | 2026-04-12 13:00:35 |
| 合計ジャッジ時間 | 3,781 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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