結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-08-04 19:27:53 |
| 言語 | Go (1.27.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 506µs | |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 10,822 ms |
| コンパイル使用メモリ | 268,692 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-10-11 04:10:07 |
| 合計ジャッジ時間 | 12,611 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
sc := bufio.NewScanner(os.Stdin)
sc.Scan()
var b = make([]byte, 0, 100)
b = append(b, sc.Bytes()...)
sc.Scan()
b = append(b, sc.Bytes()...)
str := string(b)
var max int
t := 1
for i := range str {
if str[i] == 'o' {
if max < t {
max = t
}
t++
} else {
t = 1
}
}
fmt.Println(max)
}