-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path1763 - Santa's Translator.cpp
43 lines (38 loc) · 1.27 KB
/
1763 - Santa's Translator.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
#include <iostream>
#include <map>
#include <cstdlib>
using namespace std;
map<string, string> m;
int main() {
m["brasil"] = "Feliz Natal!";
m["alemanha"] = "Frohliche Weihnachten!";
m["austria"] = "Frohe Weihnacht!";
m["coreia"] = "Chuk Sung Tan!";
m["espanha"] = "Feliz Navidad!";
m["grecia"] = "Kala Christougena!";
m["estados-unidos"] = "Merry Christmas!";
m["inglaterra"] = "Merry Christmas!";
m["australia"] = "Merry Christmas!";
m["portugal"] = "Feliz Natal!";
m["suecia"] = "God Jul!";
m["turquia"] = "Mutlu Noeller";
m["argentina"] = "Feliz Navidad!";
m["chile"] = "Feliz Navidad!";
m["mexico"] = "Feliz Navidad!";
m["antardida"] = "Merry Christmas!";
m["canada"] = "Merry Christmas!";
m["irlanda"] = "Nollaig Shona Dhuit!";
m["belgica"] = "Zalig Kerstfeest!";
m["italia"] = "Buon Natale!";
m["libia"] = "Buon Natale!";
m["siria"] = "Milad Mubarak!";
m["marrocos"] = "Milad Mubarak!";
m["japao"] = "Merii Kurisumasu!";
string s;
while(cin >> s) {
for(int i = 0; i < s.length(); i++) s[i] = tolower(s[i]);
if(m[s] != "") cout << m[s] << endl;
else cout << "--- NOT FOUND ---" << endl;
}
return 0;
}