結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー Tksi
提出日時 2018-11-06 00:31:46
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 6,816 KB
実行使用メモリ 41,716 KB
最終ジャッジ日時 2024-10-13 00:53:54
合計ジャッジ時間 2,234 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

let input = require('fs').readFileSync('/dev/stdin', 'utf8');
let D = new Date(input.replace('\n',''));
const z = str => ('00' + str).slice(-2);
D.setDate(D.getDate() + 2);
console.log(`${D.getFullYear()}/${z(D.getMonth() + 1)}/${z(D.getDate())}`);
0