結果

問題 No.83 最大マッチング
ユーザー jcm_2
提出日時 2019-08-25 08:41:29
言語 JavaScript
(node v23.5.0)
結果
WA  
実行時間 -
コード長 239 bytes
コンパイル時間 38 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 45,312 KB
最終ジャッジ日時 2024-10-13 01:23:21
合計ジャッジ時間 1,361 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(input) {
  const N = parseInt(input.trim())
  let result = (N % 2 === 1) ? "7" : "4"
  for (let i = 0; i < ~~(N / 2); i++) {
    result += "4"
  }
  console.log(result)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))
0