Result

WA

Duration

1134ms

Code [DL]

JS{{{process.stdin.on('data',s=>{[h,w]=(''+s).split(`
`),r='repeat',a='*'[r](w)+`
`,console.log(a+`*${' '[r](w-2)}*
`[r](h-2)+a)})}}}

stdin

93
68

stdout

stderr

undefined:7
process.stdin.on('data',s=>{[h,w]=(''+s).split(`
                             ^

ReferenceError: h is not defined
    at Socket.process.stdin.on.s (eval at _run (/usr/lib/node_modules/nadesiko3/src/nako3.js:150:7), <anonymous>:7:30)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)