結果
| 問題 |
No.2201 p@$$w0rd
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-03 21:50:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 480 bytes |
| コンパイル時間 | 575 ms |
| コンパイル使用メモリ | 64,520 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-02 19:42:08 |
| 合計ジャッジ時間 | 1,308 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 6 |
ソースコード
#include <string>
#include <iostream>
int main()
{
std::string s;
std::cin >> s;
int digit = 0;
int symbol = 0;
for(const auto& c : s)
{
if(c == 'l' || c == 'o') digit++;
if(c == 'a' || c == 's') symbol++;
}
int ds = 1 << (digit + symbol);
int d_only = 1 << digit;
int s_only = 1 << symbol;
if(digit && symbol) std::cout << (ds - d_only - s_only + 1) << std::endl;
else std::cout << 0 << std::endl;
}