-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbeecrowd1828.cpp
More file actions
52 lines (46 loc) · 1.95 KB
/
beecrowd1828.cpp
File metadata and controls
52 lines (46 loc) · 1.95 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
/**
* @file beecrowd1828.cpp
* see the problem - https://prnt.sc/L_mvPXhtn_3u
* @author Md. Alamin (alamin5g@yahoo.com)
* I would love be a software engineer at Google. That is why anybody can uses this code without any condition, if you face any difficulty, then try to email me.
* @version 0.1
* @date 2022-07-05
*
* @copyright Copyright (c) 2022
*
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s1, s2;
int caso = 1;
int n;
cin >> n;
while (n--)
{
cin >> s1 >> s2;
cout << "Caso #" << caso++ << ": ";
if (s1 == s2) cout << "De novo!\n";
else if (s1 == "tesoura" && s2 == "papel") cout << "Bazinga!\n";
else if (s2 == "tesoura" && s1 == "papel") cout << "Raj trapaceou!\n";
else if (s1 == "papel" && s2 == "pedra") cout << "Bazinga!\n";
else if (s2 == "papel" && s1 == "pedra") cout << "Raj trapaceou!\n";
else if (s1 == "pedra" && s2 == "lagarto") cout << "Bazinga!\n";
else if (s2 == "pedra" && s1 == "lagarto") cout << "Raj trapaceou!\n";
else if (s1 == "lagarto" && s2 == "Spock") cout << "Bazinga!\n";
else if (s2 == "lagarto" && s1 == "Spock") cout << "Raj trapaceou!\n";
else if (s1 == "Spock" && s2 == "tesoura") cout << "Bazinga!\n";
else if (s2 == "Spock" && s1 == "tesoura") cout << "Raj trapaceou!\n";
else if (s1 == "tesoura" && s2 == "lagarto") cout << "Bazinga!\n";
else if (s2 == "tesoura" && s1 == "lagarto") cout << "Raj trapaceou!\n";
else if (s1 == "lagarto" && s2 == "papel") cout << "Bazinga!\n";
else if (s2 == "lagarto" && s1 == "papel") cout << "Raj trapaceou!\n";
else if (s1 == "papel" && s2 == "Spock") cout << "Bazinga!\n";
else if (s2 == "papel" && s1 == "Spock") cout << "Raj trapaceou!\n";
else if (s1 == "Spock" && s2 == "pedra") cout << "Bazinga!\n";
else if (s2 == "Spock" && s1 == "pedra") cout << "Raj trapaceou!\n";
else if (s1 == "pedra" && s2 == "tesoura") cout << "Bazinga!\n";
else if (s2 == "pedra" && s1 == "tesoura") cout << "Raj trapaceou!\n";
}
}