結果

問題 No.341 沈黙の期間
ユーザー jp_ste
提出日時 2020-12-24 16:42:50
言語 TypeScript
(5.7.2)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 255 bytes
コンパイル時間 9,024 ms
コンパイル使用メモリ 230,388 KB
実行使用メモリ 41,584 KB
最終ジャッジ日時 2024-12-31 16:22:27
合計ジャッジ時間 9,641 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

function main(input) {
  const re = /…*/g;
  const str = input[0];
  const lenArr = str.match(re).map((val)=>{
    return val.length;
  });
  console.log(Math.max(...lenArr));
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));
0