結果
問題 |
No.2201 p@$$w0rd
|
ユーザー |
|
提出日時 | 2023-02-03 21:32:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-07-02 19:16:03 |
合計ジャッジ時間 | 1,672 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 6 |
ソースコード
s = input() n = len(s) res1 = 0 res2 = 0 for i in range(n): if s[i] in ['l', 'o']: res1 += 1 elif s[i] in ['a', 's']: res2 += 1 ans = 2**res1 - 1 ans *= 2**res2 - 1 print(ans)