結果

問題 No.2201 p@$$w0rd
ユーザー とりゐとりゐ
提出日時 2023-02-03 21:36:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,640 KB
最終ジャッジ日時 2023-09-15 17:12:30
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,264 KB
testcase_01 AC 66 ms
71,260 KB
testcase_02 AC 71 ms
71,376 KB
testcase_03 AC 71 ms
71,436 KB
testcase_04 WA -
testcase_05 AC 68 ms
71,356 KB
testcase_06 WA -
testcase_07 AC 69 ms
71,368 KB
testcase_08 AC 69 ms
71,576 KB
testcase_09 AC 67 ms
71,256 KB
testcase_10 AC 68 ms
71,408 KB
testcase_11 AC 69 ms
71,240 KB
testcase_12 AC 68 ms
71,120 KB
testcase_13 AC 67 ms
71,312 KB
testcase_14 AC 68 ms
71,260 KB
testcase_15 AC 73 ms
71,372 KB
testcase_16 WA -
testcase_17 AC 68 ms
71,236 KB
testcase_18 AC 69 ms
71,200 KB
testcase_19 AC 69 ms
71,108 KB
testcase_20 AC 69 ms
71,304 KB
testcase_21 AC 69 ms
71,376 KB
testcase_22 AC 67 ms
71,564 KB
testcase_23 AC 69 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

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