結果
問題 |
No.3299 K-th MMA String
|
ユーザー |
|
提出日時 | 2025-10-05 14:32:24 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 17,952 KB |
最終ジャッジ日時 | 2025-10-05 14:32:35 |
合計ジャッジ時間 | 7,296 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 10 TLE * 2 -- * 8 |
ソースコード
N, K = map(int, input().split()) cnt = 0 for i in range(2** N): S = bin(i)[2:].zfill(N).replace('0', 'A').replace('1', 'M') if S.find('MMA') != -1: cnt += 1 if cnt == K: print(S) break