結果

問題 No.342 一番ワロタww
ユーザー rlangevinrlangevin
提出日時 2023-01-19 00:23:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 434 bytes
コンパイル時間 2,769 ms
コンパイル使用メモリ 86,768 KB
実行使用メモリ 71,356 KB
最終ジャッジ日時 2023-09-02 17:28:11
合計ジャッジ時間 3,432 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,116 KB
testcase_01 AC 78 ms
71,064 KB
testcase_02 AC 77 ms
70,916 KB
testcase_03 AC 75 ms
71,072 KB
testcase_04 AC 77 ms
71,324 KB
testcase_05 AC 78 ms
71,088 KB
testcase_06 AC 78 ms
71,064 KB
testcase_07 AC 78 ms
71,036 KB
testcase_08 AC 77 ms
70,916 KB
testcase_09 AC 77 ms
71,116 KB
testcase_10 AC 76 ms
70,916 KB
testcase_11 AC 77 ms
71,024 KB
testcase_12 AC 77 ms
71,356 KB
testcase_13 AC 79 ms
71,328 KB
testcase_14 AC 77 ms
71,116 KB
testcase_15 AC 78 ms
71,084 KB
testcase_16 AC 77 ms
71,256 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
S.reverse()
L = [[] for i in range(100)]
cnt = 0
now = []
for s in S:
    if s == "w":
        if now:
            L[cnt].append(now)
            cnt = 0
        now = []
        cnt += 1
    else:
        now.append(s)
        
if now:
    L[cnt].append(now)
for i in range(99, 0, -1):
    if L[i]:
        L[i].reverse()
        for a in L[i]:
            a.reverse()
            print(*a, sep="")
        exit()
0