結果
| 問題 |
No.2201 p@$$w0rd
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-03 21:43:20 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 446 bytes |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 78,464 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 19:34:13 |
| 合計ジャッジ時間 | 1,474 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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++;
}
digit = 1 << digit;
symbol = 1 << symbol;
if(digit && symbol) std::cout << (digit * symbol - digit - symbol + 1) << std::endl;
else std::cout << 0 << std::endl;
}