結果

問題 No.83 最大マッチング
ユーザー irisAshirisAsh
提出日時 2017-08-14 15:48:55
言語 JavaScript
(node v21.7.1)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 185 bytes
コンパイル時間 32 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 44,672 KB
最終ジャッジ日時 2024-04-21 01:52:20
合計ジャッジ時間 1,360 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
38,528 KB
testcase_01 AC 66 ms
38,528 KB
testcase_02 AC 57 ms
38,272 KB
testcase_03 AC 57 ms
38,784 KB
testcase_04 AC 56 ms
38,272 KB
testcase_05 AC 54 ms
38,784 KB
testcase_06 AC 53 ms
38,784 KB
testcase_07 AC 55 ms
38,272 KB
testcase_08 AC 55 ms
38,272 KB
testcase_09 AC 56 ms
38,912 KB
testcase_10 AC 68 ms
44,544 KB
testcase_11 AC 72 ms
44,672 KB
testcase_12 AC 69 ms
44,672 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