結果
問題 |
No.1643 Not Substring
|
ユーザー |
|
提出日時 | 2022-11-29 22:03:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 37,144 KB |
最終ジャッジ日時 | 2024-10-07 08:35:34 |
合計ジャッジ時間 | 3,765 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | TLE * 1 -- * 25 |
ソースコード
S = input() subs = set() for bit in range(1 << len(S)): idx = [] for i in range(len(S)): if bit & 1 << i: idx.append(i) sub = ''.join(S[i] for i in idx) subs.add(sub) sub = '' for _ in range(len(S) + 1): sub += 'a' if sub not in subs: print(sub) exit()