結果
問題 |
No.2201 p@$$w0rd
|
ユーザー |
|
提出日時 | 2024-04-29 12:07:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 46 ms / 2,000 ms |
コード長 | 679 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 82,024 KB |
実行使用メモリ | 60,644 KB |
最終ジャッジ日時 | 2024-11-18 15:15:34 |
合計ジャッジ時間 | 1,869 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
S = list(input()) P = [S] for i in range(8): Q = [p[:] for p in P] P = [] for q in Q: P.append(q) if q[i] == "l": s = q[:] s[i] = "1" P.append(s) elif q[i] == "o": s = q[:] s[i] = "0" P.append(s) elif q[i] == "a": s = q[:] s[i] = "@" P.append(s) elif q[i] == "s": s = q[:] s[i] = "$" P.append(s) ans = 0 for p in P: if any(a in p for a in "abcdefghijklmnopqrstuvwxyz") and ("@" in p or "$" in p) and ("0" in p or "1" in p): ans += 1 print(ans)