結果

問題 No.3420 Letter Loading
コンテスト
ユーザー るるまるふぁんくらぶ
提出日時 2026-01-11 13:37:10
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 375 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 84 ms
コンパイル使用メモリ 64,452 KB
実行使用メモリ 58,976 KB
最終ジャッジ日時 2026-10-30 12:25:39
合計ジャッジ時間 1,958 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import groupby

N, W, H = [int(s) for s in input().split()]
S = [s for s in input()]

rle = [(s, len(list(lis))) for s, lis in groupby(S)]

answer = [["x"] * W for _ in range(H)]

j = 0

for s, cnt in rle:
    if s == "l":
        j += 1
        continue

    for i in range(cnt):
        answer[H - i - 1][j] = "o"

for row in answer:
    print(*row, sep="")
0