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