結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-11 19:54:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 367 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-27 10:26:32 |
| 合計ジャッジ時間 | 4,324 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
a = input()
b = input()
c = a + b
if c == "x" * len(c):
print(0)
else:
ans, h = 0, 1
for i in range(len(c)-1):
if c[i] == "o" and c[i+1] == "x":
h = 1
elif c[i] == "o" and c[i+1] == "o":
h += 1
ans = max(ans, h)
print(ans)