結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 14:31:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 1,000 ms |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-13 06:16:36 |
| 合計ジャッジ時間 | 1,907 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
C1=list(input())
C2=list(input())
g= C1+C2
ans=0
now=g[0]
if now=="o":
cnt=1
else:
cnt=0
for i in range(1,14):
if now=="o":
if g[i]=="o":
cnt+=1
else:
cnt=0
now==g[i]
else:
if g[i]=="o":
cnt+=1
else:
cnt=0
now==g[i]
ans=max(ans,cnt)
print(ans)
もぐら 3.0