-
Notifications
You must be signed in to change notification settings - Fork 50
/
creeper.cpp
95 lines (92 loc) · 3.48 KB
/
creeper.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
84
85
86
87
88
89
90
91
92
93
94
95
#include <string>
#include <iostream>
int isnuorch(char x) {
return ('0' <= x && x <= '9') || ('A' <= x && x <= 'Z') || ('a' <= x && x <= 'z');
}
void reduce(std::string &s) {
for (int j = 0; j < s.length(); j++) {
if (!isnuorch(s[j])) {
s.erase(j, 1);
j--;
}
}
for (int j = 0; j < s.length(); j++) {
if ('A' <= s[j] && s[j] <= 'Z') {
s[j] = s[j] - 'A' + 'a';
}
}
}
int main()
{
std::vector<std::string> lyrics = {
"Creeper?",
"Awww man!",
"So way back in the mine",
"Got our pickaxe swinging from side to side",
"Side,side to side...",
"This task's a grueling one , hope to find some diamonds tonight,night,night",
"Diamonds tonight...",
"Heads up",
"You hear a sound , turn around and look up",
"Total shock fills your body",
"Oh no it's you again , I could never forget those eyes,eyes,eyes",
"Eyes,eyes,eyes...",
"Cause baby tonight , the creeper's trying to steal all our stuff again",
"Cause baby tonight , you grab your pick , shovel and bolt again , bolt again(gain)",
"And run,run until it's done,done , until the sun comes up in the morn'",
"Cause baby tonight , the creeper's trying to steal all our stuff again , stuff again(gain)",
"Just when you think you're safe , overhear some hissing from , right behind",
"Right,right behind...",
"That's a nice life you have ,shame it's gotta end at this time,time,time",
"Time,time,time , time...",
"Blows up , then your health bar drops and you could use a 1-up",
"Get inside , don't be tardy",
"So now you are stuck in there , half a heart is left but don't die,die,die",
"Die,die,die...",
"Cause baby tonight , the creeper's trying to steal all our stuff again",
"Cause baby tonight , you grab your pick , shovel and bolt again,bolt again(gain)",
"And run,run until it's done,done , until the sun comes up in the morn'",
"Cause baby tonight , the creeper's trying to steal all our stuff again",
"Creepers , you're mine , haha",
"Dig up diamonds , and craft those diamonds and make some armour , get it baby",
"Go and forge that like you so , MLG pro , the sword's made of diamonds , so come at me bro",
"Huh",
"Training in your room under the torchlight , hone that form to get you ready for the big fight",
"Every single day and the whole night , Creeper's out prowlin' , hmm - alright",
"Look at me , look at you , take my revenge that's what I'm gonna do",
"I'm a - warrior baby , what else is new ? And my blade's gonna tear (Cause baby tonight,) through you , bring it",
"The creeper's trying to steal our stuff again",
"Yeah , let's take back the world",
"Hahhah",
"Grab your sword , armour and go",
"It's on",
"Take your revenge (\"Woooo\")",
"Ahhoahh",
"So fight,fight like it's the last,last night of your life,life (ahhahah) show them your bite",
"Wooo",
"Cause baby tonight , (\"Ahhhhahaahaaah\") the creeper's trying to steal all our stuff again",
"Cause baby tonight , you grab your pick , shovel and bolt again,bolt again(gain) (\"wooo\")",
"And run,run until it's done,done , until the sun comes up in the morn'",
"Cause baby tonight , the creeper's trying to steal all our stuff again ",
"Woooo"
};
std::cout << lyrics[0] << "\n";
for (int i = 1; i < lyrics.size(); i++) {
std::string s;
std::cin >> s;
reduce(s);
reduce(lyrics[i]);
if (s == lyrics[i]) {
i++;
if (i < lyrics.size()) {
std::cout << lyrics[i] << "\n";
}
}
else {
printf("please stop your kongxia behavior");
return 0;
}
}
printf("ohhhhhhhhhhhhhh");
return 0;
}