結果
| 問題 | No.3420 Letter Loading |
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2025-12-27 17:59:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 463 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 82,208 KB |
| 実行使用メモリ | 60,068 KB |
| 最終ジャッジ日時 | 2026-01-11 13:58:14 |
| 合計ジャッジ時間 | 1,121 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
n, w, h = map(int, input().split()); assert 1 <= n <= 2549 and 1 <= w <= 50 and 1 <= h <= 50
S = input(); assert len(S) == n
S = [S[-1-i] for i in range(n)]
A = [0] * w
idx = 0
while S:
if S[-1] == "l":
S.pop()
idx += 1
else:
cnt = 0
while S and S[-1] == "o":
S.pop()
cnt += 1
A[idx] = cnt
for s in [["o" if h-y <= A[x] else "x" for x in range(w)] for y in range(h)]:
print("".join(s))
kidodesu