結果

問題 No.1469 programing
ユーザー 学ぶマン
提出日時 2025-07-13 23:06:43
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 342 bytes
コンパイル時間 414 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 584,268 KB
最終ジャッジ日時 2025-07-13 23:06:50
合計ジャッジ時間 5,181 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys, math
sys.set_int_max_str_digits(0)

S = input()
from itertools import groupby
def runLengthEncode(S): # list でも str でも OK
    grouped = groupby(S)
    res = []
    for k, v in grouped:
        res.append((k, int(len(list(v)))))
    return res

ans = []
for k, v in runLengthEncode(S):
    ans.append(k)
print(''.join(ans))
0