結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-01 23:11:08 |
| 言語 | Go (1.26.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 15,779 ms |
| コンパイル使用メモリ | 283,520 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-04 09:32:16 |
| 合計ジャッジ時間 | 16,260 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 19 |
ソースコード
package main
import (
"fmt"
"regexp"
)
func main() {
var S string
fmt.Scan(&S)
reg := regexp.MustCompile(`c.*?w.*w`)
s := reg.FindString(S)
l := -1
if len(s) > 0 {
l = len(s)
}
fmt.Println(l)
}