mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-26 21:12:01 +00:00
16 lines
230 B
C++
16 lines
230 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int ans;
|
|
string s;
|
|
|
|
int main() {
|
|
cin >> s;
|
|
sort(s.begin(), s.end());
|
|
do ans++;
|
|
while (next_permutation(s.begin(), s.end()));
|
|
cout << ans << endl;
|
|
return 0;
|
|
}
|