結果

問題 No.2201 p@$$w0rd
ユーザー とりゐ
提出日時 2023-02-03 21:36:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-02 19:24:15
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
cnt0,cnt1=0,0
for i in s:
  if i in 'ol':
    cnt0+=1
  if i in 'as':
    cnt1+=1

ans=(2**cnt0-1)*(2**cnt1-1)
if cnt0+cnt1==8:
  ans-=1
print(ans)
0