結果

問題 No.83 最大マッチング
ユーザー irisAshirisAsh
提出日時 2017-08-14 15:48:55
言語 JavaScript
(node v20.8.0)
結果
AC  
実行時間 93 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 47,976 KB
最終ジャッジ日時 2023-08-03 02:15:18
合計ジャッジ時間 1,881 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
42,188 KB
testcase_01 AC 76 ms
42,188 KB
testcase_02 AC 75 ms
42,188 KB
testcase_03 AC 77 ms
42,244 KB
testcase_04 AC 76 ms
42,216 KB
testcase_05 AC 75 ms
42,192 KB
testcase_06 AC 76 ms
42,212 KB
testcase_07 AC 77 ms
42,224 KB
testcase_08 AC 76 ms
42,208 KB
testcase_09 AC 77 ms
42,364 KB
testcase_10 AC 89 ms
47,976 KB
testcase_11 AC 93 ms
47,936 KB
testcase_12 AC 92 ms
47,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let i = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')[0]
let a = i % 2
let r = a == 1 ? '7' : '1'
for (let c = 0; c < (i - a) / 2 - 1; c ++) {
  r += '1'
}
console.log(r)
0