結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-19 00:23:48 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 5,000 ms |
| + 524µs | |
| コード長 | 434 bytes |
| 記録 | |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 64,532 KB |
| 実行使用メモリ | 53,700 KB |
| 最終ジャッジ日時 | 2026-10-29 02:11:00 |
| 合計ジャッジ時間 | 2,548 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
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()
rlangevin