题解 | 农夫、羊、菜和狼的故事

#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;
}

我们既然没有要求,这个就是直接数学自己算出来,然后是输出即可

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务