【来源】
题目1 : String reorder
【分析】
统计各个字符出现的次数,然后一遍遍地遍历输出。
【代码】
#include <iostream>
#include <string>
using namespace std;
int main()
{
int times[36];
for (int i = 0; i < 36; ++i){
times[i] = 0;
}
string s;
while (getline(cin, s)){
for (int i = 0; i < s.size(); ++i){
bool