結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
|
提出日時 | 2016-08-16 21:09:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 174 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-07 18:21:07 |
合計ジャッジ時間 | 1,939 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 5 |
コンパイルメッセージ
Main.py:10: SyntaxWarning: "is" with 'str' literal. Did you mean "=="? if c is 'o':
ソースコード
#!/usr/bin/python3 C = input() C += input() cnt = 0 ma = 0 for c in C: if c is 'o': cnt = cnt+1 else: ma = max(cnt, ma) cnt = 0 print(ma)