結果
| 問題 | No.2201 p@$$w0rd |
| コンテスト | |
| ユーザー |
kpinkcat
|
| 提出日時 | 2023-09-24 16:38:08 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 580 bytes |
| 記録 | |
| コンパイル時間 | 1,183 ms |
| コンパイル使用メモリ | 210,408 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-02 12:48:03 |
| 合計ジャッジ時間 | 2,565 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
kpinkcat