結果
| 問題 | No.170 スワップ文字列(Easy) |
| コンテスト | |
| ユーザー |
eri
|
| 提出日時 | 2015-07-15 01:24:29 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 387µs | |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 79,960 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-06 06:08:54 |
| 合計ジャッジ時間 | 1,851 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include<iostream>
#include<string>
#include<algorithm>
#define ALL s.begin(),s.end()
using namespace std;
int main(void){
string s; cin >> s;
int ans = 0;
sort(ALL);
do{ ans++; } while (next_permutation(ALL));
cout << ans - 1 << endl;
return 0;
}
eri