-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path363_A.cpp
More file actions
53 lines (51 loc) · 1.25 KB
/
363_A.cpp
File metadata and controls
53 lines (51 loc) · 1.25 KB
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
49
50
51
52
53
#include<bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
#define ld long double
#define endl << "\n"
#define sp << " "
#define spp << " " <<
#define all(v) v.begin(),v.end()
#define a(n) a,a+n
#define lmax 9223372036854775807
#define lmin -9223372036854775808
#define li() for(i=0;i<n;++i)
#define lie(a,b) for(i=a;i<b;++i)
#define lj() for(j=0;j<n;++j)
#define lje(a,b) for(j=a;j<b;++j)
#define ft first
#define sd second
#define pb push_back
#define pf push_pront
#define mod 1000000007
#define lower(str) transform(str.begin(), str.end(), str.begin(), ::tolower);
#define upper(str) transform(str.begin(), str.end(), str.begin(), ::toupper);
#define mset(a,b) memset(a,b,sizeof(a))
#define crap ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define PI acos(-1)
int main(){
// crap ;
int timer;
// cin >>timer;
timer=1 ;
while(timer--){
ll n,i,j ;
cin >>n ;
do{
j = n%10 ;
n /= 10 ;
if( j >= 5 )
cout << "-O|" ;
else
cout << "O-|" ;
j %= 5 ;
for(i=0;i<j;++i)
cout << "O" ;
cout << "-" ;
for(i=0;i<4-j;++i)
cout << "O" ;
cout endl ;
}while(n>0) ;
}
}