結果
| 問題 |
No.3015 右に寄せろ!
|
| コンテスト | |
| ユーザー |
SourCreamOnion
|
| 提出日時 | 2025-01-25 13:01:04 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 659 bytes |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 82,636 KB |
| 実行使用メモリ | 250,632 KB |
| 最終ジャッジ日時 | 2025-01-25 22:30:33 |
| 合計ジャッジ時間 | 5,139 ms |
|
ジャッジサーバーID (参考情報) |
judge10 / judge11 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 TLE * 14 |
ソースコード
from collections import defaultdict, Counter, deque
from itertools import groupby, accumulate, combinations, permutations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from operator import itemgetter
import math
from heapq import heapify, heappush, heappop
LMI=lambda:list(map(int, input().split()))
LMS=lambda:list(map(str, input().split()))
MI=lambda:map(int, input().split())
MS=lambda:map(str, input().split())
II=lambda:int(input())
IS=lambda:input().split()
LI=lambda:list(input())
S=input()
cnt=0
while True:
tmp=S.replace('110','011',1)
if tmp==S:
print(cnt)
exit()
S=tmp
cnt+=1
SourCreamOnion