結果
| 問題 |
No.342 一番ワロタww
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-03 23:39:30 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 379 bytes |
| コンパイル時間 | 29 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 41,076 KB |
| 最終ジャッジ日時 | 2024-10-13 01:00:18 |
| 合計ジャッジ時間 | 1,745 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 1 RE * 2 |
ソースコード
const input = require('fs').readFileSync('/dev/stdin', 'utf8').replace(/\s/,'');
if (input.includes('w') && --[...new Set([...input])].length) {
const len = Math.max(...input.match(/w+/g).map(v => v.length));
const re = new RegExp(`[^w]+w{${len}}`, 'g');
console.log(
input.match(re).map(v => v.replace(/w/g, '')).join('\n')
);
} else {
console.log('');
}