結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
orisano
|
| 提出日時 | 2016-11-10 23:57:04 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 9 ms / 5,000 ms |
| + 478µs | |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 995 ms |
| コンパイル使用メモリ | 195,040 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-06 06:21:23 |
| 合計ジャッジ時間 | 2,295 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;}
orisano