結果
| 問題 | No.2201 p@$$w0rd |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-02-03 21:36:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
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 |
ソースコード
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)
とりゐ