結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー dnish
提出日時 2017-07-03 00:41:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 197 bytes
コンパイル時間 1,452 ms
コンパイル使用メモリ 171,112 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-05 08:58:27
合計ジャッジ時間 1,819 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define p(s) cout<<(s)<<endl
using namespace std;

int main(){
	string N;
	cin>>N;
	string ans=N;
	sort(N.begin(),N.end());
	reverse(N.begin(),N.end());
	p(N);
	return 0;
}
0