結果

問題 No.83 最大マッチング
ユーザー n3k2t1
提出日時 2019-07-11 00:20:03
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 41,320 KB
最終ジャッジ日時 2024-10-13 01:11:39
合計ジャッジ時間 1,399 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

const lines = require('fs')
  .readFileSync('/dev/stdin', 'utf-8')
  .trim().split('\n').values();

const N = Number(lines.next().value);

let ans;

if (N % 2) {
  ans = '7' + '1'.repeat(N / 2 - 1);
} else {
  ans = '1'.repeat(N / 2);
}

console.log(ans);
0