結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
peroon
|
| 提出日時 | 2019-06-05 20:21:13 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 643 bytes |
| 記録 | |
| コンパイル時間 | 310 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-10 13:12:57 |
| 合計ジャッジ時間 | 2,807 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 8 WA * 6 |
ソースコード
# -*- coding: utf-8 -*-
from collections import defaultdict
s = input()
#print(s)
L = len(s)
#print("L", L)
mp = defaultdict(list)
count = 0
t = ""
w = 'w'
last = ''
for i in reversed(range(L)):
#print(i)
c = s[i]
#print(c)
if c==w:
if last==w:
count += 1
else:
# register
mp[count].append(t)
t = ""
count = 1
# 文字
else:
t = c + t
last = c
#print("count", count)
if(t!=""):
mp[count].append(t)
# print(mp)
keys = list(mp.keys())
ma = keys[-1]
# print(ma)
texts = mp[ma]
for s in reversed(texts):
print(s)
peroon