結果

問題 No.2593 Reorder and Mod 120
ユーザー Nikkuniku029
提出日時 2023-12-29 15:31:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,440 KB
実行使用メモリ 77,080 KB
最終ジャッジ日時 2024-09-27 16:09:41
合計ジャッジ時間 2,701 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other WA * 10 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()
from collections import Counter

ans = 0
C_S = Counter(S)
for i in range(min(1000, int(S))):
    isOK = True
    tmp = Counter(S)
    for t in list(str(i).zfill(3)):
        tmp[t] -= 1
    for v in tmp.values():
        if v < 0:
            isOK = False
    if isOK:
        ans += 1
print(ans)
0