結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | fal_rnd |
提出日時 | 2017-01-21 15:08:17 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 1,297 ms |
コンパイル使用メモリ | 147,872 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-24 19:19:49 |
合計ジャッジ時間 | 1,967 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,384 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 12 ms
4,380 KB |
testcase_03 | AC | 12 ms
4,384 KB |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long int; using ull = unsigned long long int; const char en ='\n'; const int mod=1000000007; int main(){ cin.tie(); ios::sync_with_stdio(false); string s;cin>>s; priority_queue<char> q; //s="114514"; for(ull i=0;i<s.size();i++){ q.push(s[i]); } while(!q.empty()){ cout<<q.top(); q.pop(); } cout<<en; return 0; }