結果

問題 No.170 スワップ文字列(Easy)
ユーザー ゆるくゆるく
提出日時 2015-05-03 03:24:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 279 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 16,592 KB
最終ジャッジ日時 2023-08-24 16:17:52
合計ジャッジ時間 2,253 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,244 KB
testcase_01 AC 48 ms
16,552 KB
testcase_02 AC 35 ms
10,272 KB
testcase_03 AC 36 ms
10,312 KB
testcase_04 AC 35 ms
10,380 KB
testcase_05 AC 49 ms
16,556 KB
testcase_06 AC 48 ms
16,592 KB
testcase_07 AC 31 ms
10,296 KB
testcase_08 AC 35 ms
10,244 KB
testcase_09 AC 35 ms
10,400 KB
testcase_10 AC 44 ms
14,800 KB
testcase_11 AC 30 ms
10,280 KB
testcase_12 AC 31 ms
10,240 KB
testcase_13 AC 30 ms
10,236 KB
testcase_14 AC 30 ms
10,148 KB
testcase_15 AC 30 ms
10,384 KB
testcase_16 AC 30 ms
10,332 KB
testcase_17 AC 30 ms
10,300 KB
testcase_18 AC 31 ms
10,152 KB
testcase_19 AC 31 ms
10,184 KB
testcase_20 AC 31 ms
10,220 KB
testcase_21 AC 30 ms
10,184 KB
testcase_22 AC 30 ms
10,260 KB
testcase_23 AC 30 ms
10,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
from decimal import *

s = list(input())
m = itertools.permutations(s)
print(len(set(m)) - 1)
0