結果
問題 | No.2201 p@$$w0rd |
ユーザー |
|
提出日時 | 2023-02-03 22:52:56 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 667 bytes |
コンパイル時間 | 2,189 ms |
コンパイル使用メモリ | 199,980 KB |
最終ジャッジ日時 | 2025-02-10 09:44:26 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; set<string> ans; for(int i=0; i<(1<<8); i++){ string t=s; bitset<8> bs = i; for(int j=0; j<8; j++){ if(bs[j]){ if(t[j]=='l' || t[j]=='o') t[j]='1'; if(t[j]=='a' || t[j]=='s') t[j]='$'; } } bool al=false,nm=false,sy=false; for(int j=0; j<8; j++){ if(islower(t[j])) al=true; else if(isdigit(t[j])) nm=true; else sy=true; } if(al && nm && sy){ ans.insert(t); } } cout<<ans.size()<<endl; }