#include using namespace std; enum { rock =0, scissors, paper, max_num }; void inputRPSjudg(int &n) { for (;;) { cin >> n; if (n < 0 || n>max_num) { cout << "もう一度入力\n" << endl; continue; } break; } } int main() { int myputout = 0; int rivalputout = 0; inputRPSjudg(myputout); inputRPSjudg(rivalputout); if (myputout == rivalputout) { cout << "Drew\n" << endl; } else if (myputout == rock && rivalputout== scissors || myputout == paper && rivalputout == rock || myputout == scissors && rivalputout == paper) { cout << "Won\n" << endl; } else { cout << "Lost\n" << endl; } return 0; }