結果
| 問題 | No.188 HAPPY DAY |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-01 23:31:14 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 722 bytes |
| 記録 | |
| コンパイル時間 | 267 ms |
| コンパイル使用メモリ | 5,248 KB |
| 実行使用メモリ | 38,016 KB |
| 最終ジャッジ日時 | 2024-09-16 13:04:46 |
| 合計ジャッジ時間 | 611 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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;
}
});
return ans;
}
//テストの入力を受け取る
//Main(require("fs").readFileSync("/dev/stdin", "utf8"));
Main();
//# sourceMappingURL=index.js.map