結果
| 問題 |
No.2298 yukicounter
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-13 18:30:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 317 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2024-11-29 10:11:21 |
| 合計ジャッジ時間 | 3,019 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 3 |
ソースコード
s = input()
idx = 0
num = 0
su = 0
fd = 0
while 1:
try:
ik = s.index("yukicoder", idx + 1)
fd = 1
if ik - idx == 9:
num += 1
su = max(su, num)
else:
num = 0
idx = ik
except:
break
if fd:
print(su + 1)
else:
print(0)