結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-09-07 01:34:24 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 37 ms / 5,000 ms |
| + 927µs | |
| コード長 | 291 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 82,412 KB |
| 実行使用メモリ | 70,088 KB |
| 最終ジャッジ日時 | 2026-10-01 22:03:57 |
| 合計ジャッジ時間 | 1,772 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
from collections import deque
s = input()
l = len(s)
sset = set()
for b in range(1 << l):
d = deque(s)
t = []
for i in range(l):
if b >> i & 1:
c = d.popleft()
else:
c = d.pop()
t.append(c)
sset.add(''.join(t))
print(len(sset))
Kude