結果
問題 |
No.2201 p@$$w0rd
|
ユーザー |
![]() |
提出日時 | 2023-09-24 16:38:08 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 580 bytes |
コンパイル時間 | 1,514 ms |
コンパイル使用メモリ | 193,556 KB |
最終ジャッジ日時 | 2025-02-17 02:09:20 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 6 |
ソースコード
#include <bits/stdc++.h> #include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> #include<string> using ll = long long; using namespace std; int main() { string s; cin >> s; int num = 0, sym = 0; for (ll i = 0; i < 8; i++){ if (s[i] == 'a') sym++; else if (s[i] == 's') sym++; else if (s[i] == 'l') num++; else if (s[i] == 'o') num++; } if (sym) sym = pow(2, sym) - 1; if (num) num = pow(2, num) - 1; cout << sym * num << endl; }