結果
問題 |
No.2298 yukicounter
|
ユーザー |
|
提出日時 | 2023-05-17 10:53:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 58,460 KB |
最終ジャッジ日時 | 2024-12-15 06:05:24 |
合計ジャッジ時間 | 2,451 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
import sys input = sys.stdin.readline def main(): S = input().rstrip() target = 'yukicoder' ok = 0 ng = len(S) // len(target) + 1 while abs(ok - ng) > 1: mid = (ok + ng) // 2 if target * mid in S: ok = mid else: ng = mid print(ok) main()