結果

問題 No.2201 p@$$w0rd
ユーザー lllllll88938494lllllll88938494
提出日時 2023-02-19 06:05:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 651 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 76,652 KB
最終ジャッジ日時 2023-09-27 15:14:26
合計ジャッジ時間 4,059 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
76,420 KB
testcase_01 AC 78 ms
75,760 KB
testcase_02 AC 81 ms
76,652 KB
testcase_03 AC 79 ms
75,804 KB
testcase_04 AC 81 ms
76,288 KB
testcase_05 AC 79 ms
75,752 KB
testcase_06 AC 81 ms
75,868 KB
testcase_07 AC 81 ms
75,748 KB
testcase_08 AC 79 ms
75,932 KB
testcase_09 AC 81 ms
76,476 KB
testcase_10 AC 80 ms
76,124 KB
testcase_11 AC 79 ms
75,748 KB
testcase_12 AC 80 ms
76,056 KB
testcase_13 AC 79 ms
75,720 KB
testcase_14 AC 81 ms
75,976 KB
testcase_15 AC 79 ms
75,796 KB
testcase_16 AC 80 ms
76,004 KB
testcase_17 AC 79 ms
75,748 KB
testcase_18 AC 80 ms
75,792 KB
testcase_19 AC 79 ms
75,724 KB
testcase_20 AC 80 ms
75,752 KB
testcase_21 AC 80 ms
75,860 KB
testcase_22 AC 79 ms
75,836 KB
testcase_23 AC 79 ms
75,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

dic = {'l':'1','o':'0','a':'@','s':'$'}
from itertools import product
s = input()
ANS=set()
for p in product([0,1],repeat=len(s)):
    ss = list(s) 
    f = 0
    for i in range(len(p)):
        if p[i] == 1:
            if s[i] in dic:
                f = 1
                ss[i] = dic[s[i]]
    # print(''.join(ss),p)
    if f == 0:
        continue
    ans = [0,0,0]
    for j in ss:
        if j.isnumeric():
            ans[0] = 1
        elif j.isalpha():
            ans[1] = 1
        elif j == '@' or  j == '$':
            ans[2] = 1
    if all(ans):
        ANS.add(''.join(ss))
        

print(len(ANS))
                
            
    
0