0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-26 05:20:18 +00:00

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 17:01:13 +08:00
do
ans++;
while (next_permutation(s.begin(), s.end()));
cout << ans << endl;
return 0;
}