結果
| 問題 |
No.345 最小チワワ問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-01 23:11:08 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 14,944 ms |
| コンパイル使用メモリ | 236,280 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-14 02:18:14 |
| 合計ジャッジ時間 | 16,229 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
}