0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 23:56:26 +00:00
OI-codes/AtCoder/ABC225/A/A.cpp

17 lines
238 B
C++
Raw Normal View History

#include <bits/stdc++.h>
using namespace std;
int ans;
string s;
int main() {
cin >> s;
sort(s.begin(), s.end());
2021-11-19 09:01:13 +00:00
do
ans++;
while (next_permutation(s.begin(), s.end()));
cout << ans << endl;
return 0;
}