結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | satanic |
提出日時 | 2015-12-10 22:27:31 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 2,224 ms |
コンパイル使用メモリ | 66,168 KB |
実行使用メモリ | 4,372 KB |
最終ジャッジ日時 | 2023-10-13 10:40:09 |
合計ジャッジ時間 | 1,416 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,372 KB |
testcase_01 | AC | 1 ms
4,372 KB |
testcase_02 | AC | 14 ms
4,372 KB |
testcase_03 | AC | 13 ms
4,372 KB |
ソースコード
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main(){ vector<int> n; int input; vector<int>::iterator it; while((input=cin.get())!='\n') n.push_back(input-0x30); sort(n.begin(), n.end()); it=n.end(); while(it!=n.begin()){ --it; cout << *it; } cout << "\n"; return 0; }