結果

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

ソースコード

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 != "":
        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