結果
| 問題 |
No.39 桁の数字を入れ替え
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-10-14 23:27:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 274 bytes |
| コンパイル時間 | 689 ms |
| コンパイル使用メモリ | 61,436 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 09:07:43 |
| 合計ジャッジ時間 | 1,554 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 9 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
string s,r;
cin >> s;
sort(s.begin(),s.end());
do {
r = max(r,s);
} while(next_permutation(s.begin(),s.end()));
cout << r << endl;
}