結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 17:17:27 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 83 ms / 5,000 ms |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 77,220 KB |
| 最終ジャッジ日時 | 2025-12-03 14:07:32 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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