Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <vector>
- #include <algorithm>
- #include <cstdio>
- #include <math.h>
- #include <string>
- #include <stdio.h>
- #include <string.h>
- #include <string>
- #include <stdlib.h>
- #include <cmath>
- #include <iomanip>
- #include <queue>
- #include <utility>
- #include <vector>
- #include <stack>
- #include <list>
- #include <iterator>
- #include <cctype>
- #include <exception>
- #include <cstdlib>
- #include <stdexcept>
- #include <csignal>
- #include <pthread.h>
- using namespace std;
- int main(int argc, const char * argv[]) {
- string a,b;
- cin>>a>>b;
- if (a.compare("scissors") == 0 ) {
- if (b.compare("rock") == 0 ) {
- cout<<"second"<<endl;
- }
- else if (b.compare("paper") == 0 ) {
- cout<<"first"<< endl;
- }
- else{
- cout<<"draw"<<endl;
- }
- }
- if (a.compare("rock") == 0 ) {
- if (b.compare("paper") == 0 ) {
- cout<<"second"<<endl;
- }
- else if (b.compare("scissors") == 0 ) {
- cout<<"first"<< endl;
- }
- else{
- cout<<"draw"<<endl;
- }
- }
- if (a.compare("paper") == 0 ) {
- if (b.compare("scissors") == 0 ) {
- cout<<"second"<<endl;
- }
- else if (b.compare("rock") == 0 ) {
- cout<<"first"<< endl;
- }
- else{
- cout<<"draw"<<endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement