結果

問題 No.2201 p@$$w0rd
ユーザー tamatotamato
提出日時 2023-02-03 21:24:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 797 bytes
コンパイル時間 792 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 76,620 KB
最終ジャッジ日時 2023-09-15 16:44:02
合計ジャッジ時間 3,389 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
76,372 KB
testcase_01 AC 79 ms
76,376 KB
testcase_02 AC 78 ms
76,372 KB
testcase_03 AC 78 ms
76,328 KB
testcase_04 AC 83 ms
76,460 KB
testcase_05 AC 78 ms
76,472 KB
testcase_06 AC 80 ms
76,464 KB
testcase_07 AC 80 ms
76,464 KB
testcase_08 AC 78 ms
76,328 KB
testcase_09 AC 78 ms
76,224 KB
testcase_10 AC 82 ms
76,468 KB
testcase_11 AC 78 ms
76,400 KB
testcase_12 AC 80 ms
76,188 KB
testcase_13 AC 78 ms
76,372 KB
testcase_14 AC 78 ms
76,096 KB
testcase_15 AC 82 ms
76,612 KB
testcase_16 AC 80 ms
76,492 KB
testcase_17 AC 77 ms
76,324 KB
testcase_18 AC 78 ms
76,432 KB
testcase_19 AC 77 ms
76,508 KB
testcase_20 AC 78 ms
76,376 KB
testcase_21 AC 80 ms
76,492 KB
testcase_22 AC 79 ms
76,620 KB
testcase_23 AC 79 ms
76,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353


def main():
    import sys
    input = sys.stdin.readline

    S = input().rstrip('\n')
    R = {"l": "1", "o": "0", "a": "@", "s": "$"}

    T_list = set()
    for i in range(256):
        T = []
        for j in range(8):
            s = S[j]
            if i >> j & 1:
                if s in R:
                    T.append(R[s])
                else:
                    T.append(s)
            else:
                T.append(s)
        T_list.add("".join(T))
    ans = 0
    for T in T_list:
        flg = 0
        for t in T:
            if t in "01":
                flg |= 1
            elif t in "@$":
                flg |= 2
            else:
                flg |= 4
        if flg == 7:
            ans += 1
    print(ans)



if __name__ == '__main__':
    main()
0