結果
| 問題 | No.52 よくある文字列の問題 |
| コンテスト | |
| ユーザー |
Ricky_pon
|
| 提出日時 | 2020-05-21 21:43:12 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 22 ms / 5,000 ms |
| + 472µs | |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 52 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-08 17:18:24 |
| 合計ジャッジ時間 | 1,373 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
s = input()
S = set()
for T in range(1<<len(s)):
l, r = 0, -1
t = ""
for i in range(len(s)):
if T>>i & 1:
t += s[l]
l += 1
else:
t += s[r]
r -= 1
S.add(t)
print(len(S))
Ricky_pon