結果

問題 No.342 一番ワロタww
ユーザー zombietanzombietan
提出日時 2016-06-06 10:26:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 330 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 9,124 KB
最終ジャッジ日時 2023-08-05 16:17:29
合計ジャッジ時間 1,437 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
8,940 KB
testcase_01 AC 25 ms
8,924 KB
testcase_02 AC 25 ms
8,928 KB
testcase_03 AC 25 ms
9,080 KB
testcase_04 AC 25 ms
9,124 KB
testcase_05 AC 25 ms
8,928 KB
testcase_06 AC 25 ms
8,992 KB
testcase_07 AC 25 ms
9,036 KB
testcase_08 AC 26 ms
8,988 KB
testcase_09 AC 25 ms
8,984 KB
testcase_10 AC 25 ms
8,984 KB
testcase_11 AC 25 ms
8,992 KB
testcase_12 AC 26 ms
8,992 KB
testcase_13 AC 26 ms
9,004 KB
testcase_14 AC 26 ms
8,928 KB
testcase_15 AC 27 ms
8,940 KB
testcase_16 AC 25 ms
8,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
from collections import defaultdict
S = input()
warota = re.findall(r'[^w]+w+', S)
count = defaultdict(list)
if warota:
    for w in warota:
        c = w.count('w')
        i = w.index('w')
        count[c].append(w[0:i])
    m = max(count.keys())
    for ans in count[m]:
        print(ans)
else:
    print('')
0