mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-09 23:58:48 +00:00
A - Distinct Strings
https://atcoder.jp/contests/abc225/submissions/26895315
This commit is contained in:
parent
3f5166c479
commit
2250e77034
15
AtCoder/ABC225/A/A.cpp
Normal file
15
AtCoder/ABC225/A/A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user