0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-25 07:51:58 +00:00

A - Distinct Strings

https://atcoder.jp/contests/abc225/submissions/26895315
This commit is contained in:
Baoshuo Ren 2021-10-30 20:07:24 +08:00 committed by Baoshuo Ren
parent 3f5166c479
commit 2250e77034
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

15
AtCoder/ABC225/A/A.cpp Normal file
View File

@ -0,0 +1,15 @@
#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;
}