結果
問題 | No.2201 p@$$w0rd |
ユーザー | Hydru |
提出日時 | 2023-02-03 21:30:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 83 ms / 2,000 ms |
コード長 | 841 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 87,236 KB |
実行使用メモリ | 76,188 KB |
最終ジャッジ日時 | 2023-09-15 16:57:53 |
合計ジャッジ時間 | 3,184 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 74 ms
71,184 KB |
testcase_01 | AC | 75 ms
71,120 KB |
testcase_02 | AC | 76 ms
70,856 KB |
testcase_03 | AC | 75 ms
71,256 KB |
testcase_04 | AC | 82 ms
75,552 KB |
testcase_05 | AC | 75 ms
71,100 KB |
testcase_06 | AC | 83 ms
75,740 KB |
testcase_07 | AC | 82 ms
76,188 KB |
testcase_08 | AC | 74 ms
71,184 KB |
testcase_09 | AC | 76 ms
71,228 KB |
testcase_10 | AC | 81 ms
75,892 KB |
testcase_11 | AC | 74 ms
70,988 KB |
testcase_12 | AC | 76 ms
73,560 KB |
testcase_13 | AC | 74 ms
71,332 KB |
testcase_14 | AC | 74 ms
71,080 KB |
testcase_15 | AC | 81 ms
75,724 KB |
testcase_16 | AC | 82 ms
75,552 KB |
testcase_17 | AC | 75 ms
71,208 KB |
testcase_18 | AC | 75 ms
71,124 KB |
testcase_19 | AC | 74 ms
70,992 KB |
testcase_20 | AC | 75 ms
71,264 KB |
testcase_21 | AC | 81 ms
76,076 KB |
testcase_22 | AC | 81 ms
75,604 KB |
testcase_23 | AC | 74 ms
71,272 KB |
ソースコード
S=input() now=[""] for s in S: next=[] if s=="l": for t in now: next.append(t+"l") next.append(t+"1") elif s=="o": for t in now: next.append(t+"o") next.append(t+"0") elif s=="a": for t in now: next.append(t+"a") next.append(t+"@") elif s=="s": for t in now: next.append(t+"s") next.append(t+"$") else: for t in now: next.append(t+s) now=next chr_set=set(chr(i+97) for i in range(26)) numb_set=set(str(i) for i in range(10)) ans=0 for X in now: flag=[0,0,0] for t in X: if t in chr_set: flag[0]=1 elif t in numb_set: flag[1]=1 else: flag[2]=1 if flag==[1,1,1]: ans+=1 print(ans)