結果

問題 No.2593 Reorder and Mod 120
ユーザー tko919tko919
提出日時 2023-12-21 06:52:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 19,092 KB
最終ジャッジ日時 2023-12-21 06:52:52
合計ジャッジ時間 4,627 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
16,916 KB
testcase_01 AC 27 ms
10,112 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 27 ms
10,112 KB
testcase_06 WA -
testcase_07 AC 27 ms
10,112 KB
testcase_08 AC 28 ms
10,112 KB
testcase_09 AC 29 ms
10,112 KB
testcase_10 AC 28 ms
10,112 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n=int(input())
S=str(input())

a=[0]*26
for c in S:
	a[int(c)]+=1

ret=math.factorial(n)
for i in range(26):
	ret//=math.factorial(a[i])
	
print(ret%120)
0