結果
問題 | No.784 「,(カンマ)」 |
ユーザー |
|
提出日時 | 2020-03-19 20:37:23 |
言語 | JavaScript (node v23.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 6,948 KB |
実行使用メモリ | 42,304 KB |
最終ジャッジ日時 | 2024-10-13 01:35:39 |
合計ジャッジ時間 | 1,779 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 5 |
ソースコード
const reader = require("readline").createInterface({input: process.stdin,output: process.stdout});let lines = [];reader.on("line", line => {lines.push(line);});reader.on("close", () => {const str = lines[0]const newArr = str.split(/(.{3})/).filter(function (e) {return e})const newStr = newArr.toString()console.log(newStr)});