Result

WA

Code [DL]

a=(0 0 0 0 0 0 0 0 0 0)
while read -s -n 1 C;do $((++a[C]));done
for((i=0;i<10;i++));do
for((j=a[i];j>0;j--));do echo $i
done
done

stdin

1686478290645688970502614809531711086920450719952487023537639717690587889860467089704665378022761434

stdout

0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
3
3
3
3
3
3
4
4
4
4
4
4
4
4
4
5
5
5
5
5
5
5
5
6
6
6
6
6
6
6
6
6
6
6
6
6
7
7
7
7
7
7
7
7
7
7
7
7
7
8
8
8
8
8
8
8
8
8
8
8
8
8
9
9
9
9
9
9
9
9
9
9

stderr

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/code.bash: line 2: 1: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 1: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 2: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 3: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 4: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 9: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 9: command not found
/code.bash: line 2: 9: command not found
/code.bash: line 2: 10: command not found
/code.bash: line 2: 9: command not found
/code.bash: line 2: 11: command not found
/code.bash: line 2: 9: command not found
/code.bash: line 2: 10: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 10: command not found
/code.bash: line 2: 10: command not found
/code.bash: line 2: 11: command not found
/code.bash: line 2: 12: command not found
/code.bash: line 2: 10: command not found
/code.bash: line 2: 11: command not found
/code.bash: line 2: 12: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 11: command not found
/code.bash: line 2: 12: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 5: command not found
/code.bash: line 2: 12: command not found
/code.bash: line 2: 13: command not found
/code.bash: line 2: 13: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 7: command not found
/code.bash: line 2: 13: command not found
/code.bash: line 2: 13: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 8: command not found
/code.bash: line 2: 6: command not found
/code.bash: line 2: 9: command not found

strace