結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
Div9851
|
| 提出日時 | 2015-03-22 23:31:35 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 5,000 ms |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 837 ms |
| コンパイル使用メモリ | 86,860 KB |
| 実行使用メモリ | 6,912 KB |
| 最終ジャッジ日時 | 2026-05-29 03:00:15 |
| 合計ジャッジ時間 | 3,070 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
using namespace std;
int main() {
string S;
cin>>S;
sort(S.begin(),S.end());
set<string> poyo;
do {
poyo.insert(S);
}while(next_permutation(S.begin(),S.end()));
printf("%d\n",poyo.size()-1);
}
Div9851