結果

問題 No.1636 森
ユーザー test
提出日時 2022-11-21 16:54:28
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 30 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 40,944 KB
最終ジャッジ日時 2024-09-22 08:28:19
合計ジャッジ時間 2,437 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
    const n = parseInt(input.replace("\n", ""));
    let ans = (n - 1) ** 2;
    console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0