結果

問題 No.170 スワップ文字列(Easy)
ユーザー 👑 CleyL
提出日時 2020-01-26 19:31:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 937 ms
コンパイル使用メモリ 77,708 KB
実行使用メモリ 5,576 KB
最終ジャッジ日時 2024-09-14 11:22:40
合計ジャッジ時間 1,939 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
    string s;cin>>s;
    sort(s.begin(),s.end());
    vector<string> A;
    do{
        A.push_back(s);
    }while(next_permutation(s.begin(),s.end()));
    cout << A.size()-1 << endl;
}
0