解谜游戏

题目 解谜游戏

image-337d126e

思路分析

题目太复杂了 懒得看

尝试输出T轮全yes或no 但这小子学精了 一分不给

尝试用随机数 也几十遍都没对一次 emmm

#include<bits/stdc++.h>

#include <ctime>

using namespace std;

int main() {

    int T;

    cin >> T;

	srand(time(NULL));

    while (T--) {

    	int x = rand() % 2;

        if (x==1) {

            cout << "YES" << endl;

        } else {

            cout << "NO" << endl;

        }

    }

    return 0;

}

代码实现


同类题型

视频讲解


⬅️ 排列数 🏠 00-冲刺国赛 ➡️ 第八大奇迹