結果

問題 No.342 一番ワロタww
ユーザー 👑 rin204rin204
提出日時 2022-01-20 03:44:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 86,544 KB
実行使用メモリ 71,360 KB
最終ジャッジ日時 2023-08-15 08:23:30
合計ジャッジ時間 2,323 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,060 KB
testcase_01 AC 65 ms
71,240 KB
testcase_02 AC 63 ms
71,228 KB
testcase_03 AC 65 ms
71,360 KB
testcase_04 AC 64 ms
71,232 KB
testcase_05 AC 65 ms
71,060 KB
testcase_06 AC 63 ms
71,180 KB
testcase_07 AC 63 ms
71,320 KB
testcase_08 AC 61 ms
71,184 KB
testcase_09 AC 62 ms
71,132 KB
testcase_10 AC 63 ms
71,272 KB
testcase_11 AC 63 ms
71,348 KB
testcase_12 AC 62 ms
71,240 KB
testcase_13 AC 66 ms
71,328 KB
testcase_14 AC 67 ms
70,864 KB
testcase_15 AC 65 ms
71,000 KB
testcase_16 AC 62 ms
70,904 KB
権限があれば一括ダウンロードができます

ソースコード

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