Cod sursa(job #1213163)

Utilizator hopingsteamMatraguna Mihai-Alexandru hopingsteam Data 27 iulie 2014 14:45:57
Problema Ordine Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.46 kb
#include    <fstream>
#include    <iostream>
#include    <algorithm>
#include    <cstring>

using namespace std;

ifstream fin("ordine.in");
ofstream fout("ordine.out");

char word[1000005];
int L;

void sort2()
{
    for(int i = 0; i < L; i++)
    {
        cout << word[i];
    }
}

void read()
{
    fin >> word; L = strlen(word);
    sort(word, word + L);
    //sort2();
    fout << word;
}

int main()
{
    read();
    return 0;
}