結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-03-03 23:41:36 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 386 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 6,528 KB |
| 実行使用メモリ | 53,848 KB |
| 最終ジャッジ日時 | 2026-04-30 06:08:34 |
| 合計ジャッジ時間 | 2,513 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 14 |
ソースコード
const input = require('fs').readFileSync('/dev/stdin', 'utf8')`.replace(/^w+|\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('');
}