結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-01 23:34:46 |
| 言語 | JavaScript (node v26.7.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 1,000 ms |
| + 120µs | |
| コード長 | 728 bytes |
| 記録 | |
| コンパイル時間 | 3 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 48,612 KB |
| 最終ジャッジ日時 | 2026-08-28 18:59:09 |
| 合計ジャッジ時間 | 1,442 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
"use strict";
function Main() {
let ans = 0;
[...Array(365).keys()].forEach(i => {
const Dt = new Date(2015, 0, 1, 0, 0);
Dt.setDate(Dt.getDate() + i);
const Month = Dt.getMonth() + 1;
const DayAdded = (i => {
if (i > 9) {
return Number(String(i).substring(0, 1)) + Number(String(i).substring(1, 2));
}
else {
return i;
}
})(Dt.getDate());
if (Month === DayAdded) {
ans = ++ans;
}
});
console.log(ans);
}
//テストの入力を受け取る
//Main(require("fs").readFileSync("/dev/stdin", "utf8"));
Main();
//# sourceMappingURL=index.js.map