結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-02-22 17:17:27 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| + 83µs | |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 81,652 KB |
| 実行使用メモリ | 80,640 KB |
| 最終ジャッジ日時 | 2026-07-17 10:16:59 |
| 合計ジャッジ時間 | 1,771 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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