結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー chiyodachiyoda
提出日時 2016-06-25 20:03:13
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 214 bytes
コンパイル時間 658 ms
コンパイル使用メモリ 61,204 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-20 03:21:36
合計ジャッジ時間 1,242 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
  char n[500001];
  while(cin >> n) ;
  sort(n, n+500000);
  for(int i = 499999; i >= 0; --i) cout << n[i];
  cout << endl;
  return 0;
}
0