4 条题解

  • 2
    @ 2026-7-26 16:57:41

    防止 FISH 取消成绩。

    • 2
      @ 2026-7-26 16:35:29

      概率更大

      #include <bits/stdc++.h>
      using namespace std;
      int main(){
      	random_device rd;
          mt19937 gen(rd());
          uniform_int_distribution<int> dis(1,100000);
          if(dis(gen)>=3000){
          	  cout<<"NO";
      	}else{
                cout<<"YES";
      	}
      	
      }
      
      
      
    • 2
      @ 2026-7-26 16:32:38

      自己去试吧,一试一个不吱声🤪🤪🤪

      #include <bits/stdc++.h>
      using namespace std;
      int main(){
      	random_device rd;
          mt19937 gen(rd());
          uniform_int_distribution<int> dis(0,1);
          if(dis(gen)==1){
          	  cout<<"YES";
      	}else{
                cout<<"NO";
      	}
      	
      }
      
      
      • 1
        @ 2026-7-26 21:29:56

        AC这道题的概率只有1/1024,所以出这题是hyw

        #include<bits/stdc++.h>
        #include<random>
        using namespace std;
        int main() {
        	srand(unsigned(time(0)));
            random_device rd;
            mt19937 gen(rd());
            uniform_int_distribution<int> dist(1, 100);
            if(dist(gen)>=80)cout<<"YES";
            else cout<<"NO";
            return 0;
        }
        
      • 1