結果
問題 | No.341 沈黙の期間 |
ユーザー |
|
提出日時 | 2019-07-13 22:00:14 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 67 ms / 5,000 ms |
コード長 | 235 bytes |
コンパイル時間 | 31 ms |
コンパイル使用メモリ | 6,692 KB |
実行使用メモリ | 39,296 KB |
最終ジャッジ日時 | 2024-10-13 01:12:53 |
合計ジャッジ時間 | 1,573 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
const lines = require('fs').readFileSync('/dev/stdin', 'utf-8').trim().split('\n').values();const S = lines.next().value;try {console.log(Math.max(...S.match(/…+/g).map(x => x.length)));} catch (e) {console.log(0);}