27 lines
458 B
C++
27 lines
458 B
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
using std::cout;
|
|
using std::cin;
|
|
using std::string;
|
|
|
|
int main(void) {
|
|
|
|
// Taking problem parameters
|
|
cout << "Length of sequence : ";
|
|
int N; cin >> N;
|
|
|
|
cout << "Number of colors : ";
|
|
int M; cin >> M;
|
|
|
|
cout << "Who plays [human/bot] : ";
|
|
string player; cin >> player;
|
|
|
|
string opponent = "random";
|
|
if(player == "bot") {
|
|
cout << "Who generates the sequence [random/human]: ";
|
|
cin >> opponent;
|
|
}
|
|
|
|
return 0;
|
|
}
|