結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-01 23:34:46 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 728 bytes |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 5,376 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2024-09-16 13:04:45 |
| 合計ジャッジ時間 | 2,661 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 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