結果
| 問題 | No.170 スワップ文字列(Easy) | 
| コンテスト | |
| ユーザー |  eri | 
| 提出日時 | 2015-07-15 01:24:29 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 253 bytes | 
| コンパイル時間 | 571 ms | 
| コンパイル使用メモリ | 60,796 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-23 00:29:55 | 
| 合計ジャッジ時間 | 1,406 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#define ALL s.begin(),s.end()
using namespace std;
int main(void){
	string s; cin >> s;
	int ans = 0;
	sort(ALL);
	do{ ans++; } while (next_permutation(ALL));
	cout << ans - 1 << endl;
	return 0;
}
            
            
            
        