結果

問題 No.2201 p@$$w0rd
ユーザー n_nan_na
提出日時 2023-02-05 02:13:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 654 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 76,656 KB
最終ジャッジ日時 2023-09-16 21:27:00
合計ジャッジ時間 3,452 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
76,380 KB
testcase_01 AC 83 ms
76,424 KB
testcase_02 AC 84 ms
76,424 KB
testcase_03 AC 82 ms
76,608 KB
testcase_04 AC 81 ms
76,512 KB
testcase_05 AC 81 ms
76,424 KB
testcase_06 AC 84 ms
76,656 KB
testcase_07 AC 83 ms
76,320 KB
testcase_08 AC 82 ms
76,604 KB
testcase_09 AC 80 ms
76,264 KB
testcase_10 AC 85 ms
76,384 KB
testcase_11 AC 82 ms
76,436 KB
testcase_12 AC 84 ms
76,596 KB
testcase_13 AC 82 ms
76,460 KB
testcase_14 AC 82 ms
76,436 KB
testcase_15 AC 83 ms
76,312 KB
testcase_16 AC 85 ms
76,544 KB
testcase_17 AC 83 ms
76,532 KB
testcase_18 AC 83 ms
76,544 KB
testcase_19 AC 84 ms
76,424 KB
testcase_20 AC 83 ms
76,292 KB
testcase_21 AC 83 ms
76,504 KB
testcase_22 AC 83 ms
76,604 KB
testcase_23 AC 82 ms
76,364 KB
権限があれば一括ダウンロードができます

ソースコード

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