結果
問題 |
No.3135 AAABC
|
ユーザー |
👑 |
提出日時 | 2025-05-02 21:47:16 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 525 ms |
コンパイル使用メモリ | 82,760 KB |
実行使用メモリ | 131,984 KB |
最終ジャッジ日時 | 2025-05-02 21:47:22 |
合計ジャッジ時間 | 4,475 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 RE * 6 |
ソースコード
from itertools import product N = int(input()) S = int(input()) li = [] for s in product(["A", "B", "C"], repeat=N): if not set(s) == {"A", "B", "C"}: continue s = "".join(s) li.append(s) if len(li) >= S: break print(li[S-1])