-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path15947.cpp
83 lines (80 loc) · 1.42 KB
/
15947.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// 15947. 아기 석환 뚜루루 뚜루
// 2020.12.08
// 구현
#include<iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int k = n / 14;
int m = n % 14;
switch (m)
{
case 1:
case 13:
cout << "baby" << endl;
break;
case 0:
case 2:
cout << "sukhwan" << endl;
break;
case 3:
case 7:
case 11:
if (k == 0)
{
cout << "tururu" << endl;
}
else if (k == 1)
{
cout << "turururu" << endl;
}
else if (k == 2)
{
cout << "tururururu" << endl;
}
else
{
cout << "tu+ru*" << k + 2 << endl;
}
break;
case 4:
case 8:
case 12:
if (k == 0)
{
cout << "turu" << endl;
}
else if (k == 1)
{
cout << "tururu" << endl;
}
else if (k == 2)
{
cout << "turururu" << endl;
}
else if (k == 3)
{
cout << "tururururu" << endl;
}
else
{
cout << "tu+ru*" << k + 1 << endl;
}
break;
case 5:
cout << "very" << endl;
break;
case 6:
cout << "cute" << endl;
break;
case 9:
cout << "in" << endl;
break;
case 10:
cout << "bed" << endl;
break;
}
return 0;
}