题解 | 农夫、羊、菜和狼的故事
#include <iostream>
using namespace std;
int main() {
cout << "sheep_go" << endl;
cout << "nothing_come" << endl;
cout << "wolf_go" << endl;
cout << "sheep_come" << endl;
cout << "vegetable_go" << endl;
cout << "nothing_come" << endl;
cout << "sheep_go" << endl;
cout << "succeed" << endl;
return 0;
}
我们既然没有要求,这个就是直接数学自己算出来,然后是输出即可