結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー zaichu
提出日時 2015-12-15 21:17:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 14 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 613 ms
コンパイル使用メモリ 65,096 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 13:08:26
合計ジャッジ時間 1,073 ms
ジャッジサーバーID
(参考情報)
judge6 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	vector<char> data;
	char x;
	while(cin >> x) data.push_back(x);
	sort(data.begin(),data.end(),greater<int>());
	for(auto x:data) cout << x;
	cout << endl;
	return 0;
}
0