結果
| 問題 |
No.170 スワップ文字列(Easy)
|
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2016-11-10 23:20:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 5,000 ms |
| コード長 | 204 bytes |
| コンパイル時間 | 1,783 ms |
| コンパイル使用メモリ | 175,736 KB |
| 実行使用メモリ | 6,784 KB |
| 最終ジャッジ日時 | 2024-12-23 00:44:35 |
| 合計ジャッジ時間 | 2,617 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import"bits/stdc++.h"
| ^~~~~~
ソースコード
#import"bits/stdc++.h"
#define ALL(a) (a).begin(),(a).end()
using namespace std;int main(){string s;cin>>s;sort(ALL(s));set<string>e;do e.insert(s);while(next_permutation(ALL(s)));cout<<e.size()-1<<endl;}
ant2357