結果

問題 No.342 一番ワロタww
ユーザー rlangevinrlangevin
提出日時 2023-01-19 00:23:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 2,425 ms
コンパイル使用メモリ 86,652 KB
実行使用メモリ 71,304 KB
最終ジャッジ日時 2023-09-02 17:26:46
合計ジャッジ時間 4,166 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 75 ms
71,064 KB
testcase_02 AC 73 ms
71,080 KB
testcase_03 AC 73 ms
71,288 KB
testcase_04 AC 74 ms
71,072 KB
testcase_05 AC 73 ms
71,108 KB
testcase_06 AC 73 ms
71,156 KB
testcase_07 AC 74 ms
71,060 KB
testcase_08 AC 74 ms
71,228 KB
testcase_09 AC 74 ms
71,304 KB
testcase_10 AC 74 ms
71,208 KB
testcase_11 AC 73 ms
71,276 KB
testcase_12 AC 72 ms
71,052 KB
testcase_13 AC 72 ms
70,936 KB
testcase_14 WA -
testcase_15 AC 72 ms
71,244 KB
testcase_16 AC 73 ms
71,040 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, -1, -1):
    if L[i]:
        L[i].reverse()
        for a in L[i]:
            a.reverse()
            print(*a, sep="")
        exit()
0