結果

問題 No.342 一番ワロタww
ユーザー 👑 rin204
提出日時 2022-01-20 03:44:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 211 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-11-23 14:15:51
合計ジャッジ時間 1,593 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

w = "w"

S = input() + "_"
S = S.lstrip(w).split(w)

if len(S) == 1:
    print()
    exit()
cnt = [[] for _ in range(100)]
c = 0
b = ""
for s in S:
    if s != "":
        if b != "":
            cnt[c].append(b)
        b = s
        c = 0
    else:
        c += 1


for i in range(99, -1, -1):
    if cnt[i]:
        print(*cnt[i], sep="\n")
        break
0