結果

問題 No.2593 Reorder and Mod 120
ユーザー H20H20
提出日時 2023-12-26 00:01:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 82,916 KB
実行使用メモリ 85,104 KB
最終ジャッジ日時 2024-09-27 14:48:35
合計ジャッジ時間 3,540 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
73,032 KB
testcase_01 AC 45 ms
55,140 KB
testcase_02 AC 74 ms
73,696 KB
testcase_03 AC 77 ms
73,036 KB
testcase_04 AC 74 ms
72,284 KB
testcase_05 AC 75 ms
74,008 KB
testcase_06 AC 76 ms
73,568 KB
testcase_07 AC 45 ms
54,516 KB
testcase_08 AC 45 ms
53,652 KB
testcase_09 AC 43 ms
53,780 KB
testcase_10 AC 44 ms
54,640 KB
testcase_11 AC 77 ms
73,300 KB
testcase_12 AC 77 ms
75,008 KB
testcase_13 AC 102 ms
84,268 KB
testcase_14 AC 87 ms
76,652 KB
testcase_15 AC 92 ms
77,792 KB
testcase_16 AC 79 ms
74,476 KB
testcase_17 AC 86 ms
76,492 KB
testcase_18 AC 89 ms
76,520 KB
testcase_19 AC 97 ms
78,332 KB
testcase_20 AC 105 ms
84,992 KB
testcase_21 AC 104 ms
84,796 KB
testcase_22 AC 105 ms
84,924 KB
testcase_23 AC 105 ms
85,012 KB
testcase_24 AC 101 ms
84,892 KB
testcase_25 AC 100 ms
85,104 KB
testcase_26 AC 100 ms
84,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
C = collections.Counter(list(input()))
forty = set()
if N>=4:
    N=3
for i in range(10**(N-1),10**N):
    if not (collections.Counter(list(str(i))) - C):
        forty.add(i%40)
print(len(forty))
0