結果

問題 No.2201 p@$$w0rd
ユーザー n_na
提出日時 2023-02-05 02:13:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 654 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 62,048 KB
最終ジャッジ日時 2024-07-03 20:27:23
合計ジャッジ時間 2,101 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
N = 8

res = set()
for i in range(1<<N):
    pw = []
    for j in range(N):
        if (i>>j)&1 == 1:
            if S[j] == "l": pw.append("1")
            elif S[j] == "o": pw.append("0")
            elif S[j] == "a": pw.append("@")
            elif S[j] == "s": pw.append("$")
            else: pw.append(S[j])
        else:
            pw.append(S[j])
    p = "".join(pw)
    check = [False]*3
    for j in range(N):
        s = p[j]
        if s.isnumeric(): check[0] = True
        elif s.islower(): check[1] = True
        else: check[2] = True
    if check.count(True) == 3: res.add(p)
#    print(check)

print(len(res))
            
0