結果
問題 |
No.1469 programing
|
ユーザー |
|
提出日時 | 2025-04-15 23:53:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 2,569 ms / 3,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 1,047 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 198,804 KB |
最終ジャッジ日時 | 2025-04-15 23:54:42 |
合計ジャッジ時間 | 5,696 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
from itertools import groupby def runLengthEncode(S: str) -> list[tuple]: grouped = groupby(S) res = [] for k, v in grouped: res.append((k, int(len(list(v))))) return res def Main(): s=input() t=runLengthEncode(s) for x in t: print(x[0],end="") print() Main()