結果

問題 No.2201 p@$$w0rd
ユーザー i_am_noob
提出日時 2023-02-12 02:27:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 1,694 ms
コンパイル使用メモリ 193,816 KB
最終ジャッジ日時 2025-02-10 14:38:35
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using pii=pair<int,int>;

#define all(a) a.begin(),a.end()
#define pb push_back
#define sz(a) ((int)a.size())

signed main(){
    ios_base::sync_with_stdio(0),cin.tie(0);
    string s; cin >> s;
    int x=count(all(s),'l')+count(all(s),'o'),y=count(all(s),'a')+count(all(s),'s');
    cout << ((1<<x)-1)*((1<<y)-1)-(x+y==sz(s)) << "\n";
}
0