結果
| 問題 |
No.2201 p@$$w0rd
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2025-04-11 18:42:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 622 bytes |
| コンパイル時間 | 394 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-04-11 18:42:28 |
| 合計ジャッジ時間 | 2,391 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
def f1(t, c, i):
i1 = i + 1
if i1 == len(s):
ss.add(t)
else:
d = {"o": "0", "l": "1", "s": "$", "a": "@"}
cc = [c]
if c in d:
cc += [d[c]]
for a in cc:
f1(t + a, s[i1], i1)
def f2():
res = 0
for s in ss:
flg = set()
for c in s:
if c in {"0", "1"}:
flg |= {"n"}
elif c in {"@", "$"}:
flg |= {"s"}
else:
flg |= {"a"}
if len(flg) == 3:
res += 1
return res
ss = set()
s = input() + "_"
f1("", s[0], 0)
print(f2())
toshiro_yanagi