結果

問題 No.2593 Reorder and Mod 120
ユーザー taro2023taro2023
提出日時 2023-12-21 12:41:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 281 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 817,024 KB
最終ジャッジ日時 2023-12-21 12:41:37
合計ジャッジ時間 4,080 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,984 KB
testcase_01 AC 26 ms
9,984 KB
testcase_02 AC 37 ms
10,752 KB
testcase_03 AC 84 ms
15,488 KB
testcase_04 AC 386 ms
55,424 KB
testcase_05 AC 27 ms
9,984 KB
testcase_06 AC 303 ms
55,424 KB
testcase_07 AC 30 ms
9,984 KB
testcase_08 AC 27 ms
9,984 KB
testcase_09 AC 26 ms
9,984 KB
testcase_10 AC 27 ms
9,984 KB
testcase_11 MLE -
testcase_12 -- -
testcase_13 -- -
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 itertools
a=int(input())
b=list(map(int, input()))
c=""
d=0
e=[]
p = set(list(itertools.permutations(b)))
p=list(p)
for i in range(len(p)):
    for j in range(len(p[i])):
        c+=str(p[i][j])
    if int(c)%120!=0:
        e.append(int(c)%120)
    c=""
print(len(set(e)))
0