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