結果

問題 No.83 最大マッチング
ユーザー jcm_2jcm_2
提出日時 2019-08-25 08:43:55
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 143 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 45,056 KB
最終ジャッジ日時 2024-04-21 03:01:20
合計ジャッジ時間 1,914 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
38,784 KB
testcase_01 AC 58 ms
38,528 KB
testcase_02 AC 60 ms
38,656 KB
testcase_03 AC 59 ms
38,784 KB
testcase_04 AC 59 ms
38,656 KB
testcase_05 AC 58 ms
38,656 KB
testcase_06 AC 54 ms
38,400 KB
testcase_07 AC 60 ms
38,784 KB
testcase_08 AC 58 ms
38,656 KB
testcase_09 AC 62 ms
39,168 KB
testcase_10 AC 67 ms
44,544 KB
testcase_11 AC 71 ms
44,800 KB
testcase_12 AC 70 ms
45,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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