結果
問題 |
No.342 一番ワロタww
|
ユーザー |
|
提出日時 | 2020-09-27 02:03:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 512 bytes |
コンパイル時間 | 368 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-30 03:09:45 |
合計ジャッジ時間 | 1,185 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 3 RE * 1 |
ソースコード
S = input()[::-1] cnt = 0 moji = "" ans = {} for s in S: if s == "w": if cnt and moji: if cnt not in ans: ans[cnt] = [moji[::-1]] else: ans[cnt].append(moji[::-1]) moji = "" cnt = 0 cnt += 1 else: moji += s if moji: if cnt not in ans: ans[cnt] = [moji[::-1]] else: ans[cnt].append(moji[::-1]) #print(ans) for a in ans[max(ans.keys())][::-1]: print(a)