-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaoj0219.cpp
48 lines (43 loc) · 889 Bytes
/
aoj0219.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include <iostream>
#include <stdio.h>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>
#include <set>
#include <math.h>
#include <utility>
#include <stack>
#include <string.h>
#include <complex>
using namespace std;
const int INF = 1<<29;
const double EPS = 1e-8;
typedef vector<int> vec;
typedef pair<int,int> P;
int main(){
while(1){
int n;
scanf("%d",&n);
if(!n)break;
vector<int> num(10,0);
for(int i=0;i<n;i++){
int t;
scanf("%d",&t);
num[t]+=1;
}
for(int i=0;i<10;i++){
if(num[i]>0){
for(int j=0;j<num[i];j++){
printf("*");
}
printf("\n");
}else{
cout << "-" << endl;
}
}
}
return 0;
}