結果
問題 |
No.52 よくある文字列の問題
|
ユーザー |
![]() |
提出日時 | 2014-10-28 23:53:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 393 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 139,220 KB |
最終ジャッジ日時 | 2024-12-30 13:22:24 |
合計ジャッジ時間 | 2,766 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 7 |
ソースコード
import sys #sys.setrecursionlimit(n) import heapq import re import bisect import random import math import itertools from collections import defaultdict, deque from copy import deepcopy s = str(input()) s1 = list(s) s2 = list(s) s2.reverse() s1.pop() s2.pop() a = set(itertools.permutations(s1)) b = set(itertools.permutations(s2)) print(1 if a == b else len(a) + len(b))