結果
| 問題 |
No.52 よくある文字列の問題
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 17:17:27 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 212 bytes |
| コンパイル時間 | 46 ms |
| コンパイル使用メモリ | 6,940 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 05:19:35 |
| 合計ジャッジ時間 | 723 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
S=raw_input()
s=set([])
def rec( cur, rest):
if len(rest)==0:
s.add(cur)
return
rec(cur+rest[0],rest[1:])
if len(rest)>=2:
rec(cur+rest[-1],rest[:-1])
rec("",S)
print len(s)
yaoshimax