結果

問題 No.2201 p@$$w0rd
ユーザー KudeKude
提出日時 2023-02-03 21:24:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 156 bytes
コンパイル時間 621 ms
コンパイル使用メモリ 86,336 KB
実行使用メモリ 71,240 KB
最終ジャッジ日時 2023-09-15 16:44:55
合計ジャッジ時間 3,266 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,832 KB
testcase_01 AC 74 ms
70,920 KB
testcase_02 AC 73 ms
70,912 KB
testcase_03 AC 72 ms
71,240 KB
testcase_04 AC 72 ms
70,996 KB
testcase_05 AC 71 ms
71,028 KB
testcase_06 AC 72 ms
70,848 KB
testcase_07 AC 74 ms
71,100 KB
testcase_08 AC 72 ms
70,988 KB
testcase_09 AC 72 ms
70,912 KB
testcase_10 AC 71 ms
70,844 KB
testcase_11 AC 70 ms
70,988 KB
testcase_12 AC 70 ms
70,728 KB
testcase_13 AC 71 ms
71,020 KB
testcase_14 AC 72 ms
70,936 KB
testcase_15 AC 71 ms
71,168 KB
testcase_16 AC 72 ms
70,964 KB
testcase_17 AC 73 ms
70,992 KB
testcase_18 AC 72 ms
70,992 KB
testcase_19 AC 74 ms
71,020 KB
testcase_20 AC 73 ms
70,980 KB
testcase_21 AC 72 ms
70,920 KB
testcase_22 AC 73 ms
70,964 KB
testcase_23 AC 72 ms
70,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
a = s.count('l') + s.count('o')
b = s.count('a') + s.count('s')
ans = (2 ** a - 1) * (2 ** b - 1)
if ans and a + b == 8:
    ans -= 1
print(ans)
0