結果
問題 |
No.341 沈黙の期間
|
ユーザー |
|
提出日時 | 2019-03-27 19:54:43 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 12,095 ms |
コンパイル使用メモリ | 237,824 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 02:25:55 |
合計ジャッジ時間 | 12,942 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 1 |
ソースコード
package main import ( "fmt" "regexp" ) func main(){ var s string fmt.Scan(&s); r := regexp.MustCompile(`…+…`); matchs := r.FindAllString(s, -1); ans := 0; for i:=0; i<len(matchs); i++ { size := len(matchs[i])/3; if ans < size { ans = size; } } fmt.Println(ans); }