結果

問題 No.170 スワップ文字列(Easy)
ユーザー erieri
提出日時 2015-07-15 01:22:00
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 59,980 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-08 07:34:58
合計ジャッジ時間 1,181 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 4 WA * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void){
	string s; cin >> s;
	int ans = 0;
	do{ ans++; } while (next_permutation(s.begin(),s.end()));
	cout << ans - 1 << endl;
	return 0;
}
0