結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-19 19:23:59 |
| 言語 | JavaScript (node v25.8.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 6,400 KB |
| 実行使用メモリ | 52,992 KB |
| 最終ジャッジ日時 | 2026-04-30 05:44:27 |
| 合計ジャッジ時間 | 4,048 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 29 |
ソースコード
let input = require('fs').readFileSync('/dev/stdin', 'utf8');
console.log(input);
const ans = input.match(/c[^c]*?w[^c]*?w/g);
console.log(ans ? ans[0].length : -1);