场外援助
```c++
include
include
using namespace std;
int main(){
char num[100];
cin>>num;
int result[10] = {0};
for (int i = 0; i < strlen(num); result[num[i++]-'0']++);
for (int i = 9; i >= 0; i--){
if (result[i]!=0) cout<<i<<":"<<result[i]<<" ";
}
}
## 事后记:
以上代码换了一瓶5块钱的雪碧(和三块钱的并没有差别),可以说是我写过的最值钱的代码了
_(:3 」∠)_