8442022-01-20 12:59:44Halasz EszterSzámjegy keveréscpp11Wrong answer 2/402ms1892 KiB
#include <iostream>
//#include <fstream>
#include <vector>
#include <algorithm>

using namespace std;

//ifstream cin("szamjegykeveres.in");
//ofstream cout("szamjegykeveres.out");

vector<int>x;

int n,i,db,j;

int main()
{
    cin>>n;
    while(n>0)
    {
        x.push_back(n%10);
        n=n/10;
    }
    sort(x.begin(),x.end());
    for(i=0;i<x.size();++i)
        if(x[i]==0 ) db++;
    else
    {
        j=i;
        break;
    }

    cout<<x[j];
    for(i=0;i<x.size();++i)
        if(i!=j) cout<<x[i];

    return 0;
}
SubtaskSumTestVerdictTimeMemory
base2/40
1Accepted0/02ms1800 KiB
2Accepted0/01ms1828 KiB
3Wrong answer0/01ms1784 KiB
4Accepted2/21ms1784 KiB
5Wrong answer0/21ms1888 KiB
6Wrong answer0/21ms1888 KiB
7Wrong answer0/21ms1888 KiB
8Wrong answer0/21ms1888 KiB
9Wrong answer0/21ms1892 KiB
10Wrong answer0/21ms1892 KiB
11Wrong answer0/41ms1888 KiB
12Wrong answer0/41ms1784 KiB
13Wrong answer0/21ms1892 KiB
14Wrong answer0/21ms1888 KiB
15Wrong answer0/21ms1892 KiB
16Wrong answer0/21ms1888 KiB
17Wrong answer0/21ms1788 KiB
18Wrong answer0/21ms1888 KiB
19Wrong answer0/32ms1892 KiB
20Wrong answer0/32ms1892 KiB