結果

問題 No.2201 p@$$w0rd
ユーザー miya145592miya145592
提出日時 2023-05-04 02:07:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 500 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 59,648 KB
最終ジャッジ日時 2024-05-01 18:10:38
合計ジャッジ時間 2,179 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
58,624 KB
testcase_01 AC 47 ms
58,496 KB
testcase_02 AC 47 ms
58,624 KB
testcase_03 AC 45 ms
58,496 KB
testcase_04 AC 47 ms
59,520 KB
testcase_05 AC 42 ms
58,240 KB
testcase_06 AC 44 ms
59,648 KB
testcase_07 AC 46 ms
59,008 KB
testcase_08 AC 41 ms
58,368 KB
testcase_09 AC 41 ms
58,752 KB
testcase_10 AC 52 ms
59,520 KB
testcase_11 AC 48 ms
59,264 KB
testcase_12 AC 45 ms
59,264 KB
testcase_13 AC 41 ms
58,240 KB
testcase_14 AC 41 ms
58,496 KB
testcase_15 AC 46 ms
59,136 KB
testcase_16 AC 44 ms
58,880 KB
testcase_17 AC 41 ms
58,112 KB
testcase_18 AC 41 ms
58,496 KB
testcase_19 AC 42 ms
58,624 KB
testcase_20 AC 42 ms
58,240 KB
testcase_21 AC 47 ms
59,136 KB
testcase_22 AC 44 ms
59,264 KB
testcase_23 AC 43 ms
58,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
rep = dict()
rep['l'] = '1'
rep['o'] = '0'
rep['a'] = '@'
rep['s'] = '$'
ok = set()
for i in range(1<<8):
    T = []
    for j in range(8):
        if (i>>j)&1 and S[j] in rep:
            T.append(rep[S[j]])
        else:
            T.append(S[j])
    a = 0
    b = 0
    c = 0
    for t in T:
        if "a"<=t<="z":
            a=1
        elif t=='1'or t=='0':
            b=1
        elif t=='@' or t=='$':
            c=1
    if a+b+c==3:
        ok.add("".join(T))
print(len(ok))
0