Last active
August 10, 2022 07:12
-
-
Save dwatanabee/9dc89d2c9830bd24078c83151441233e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include <random> | |
using namespace std; | |
int main() | |
{ | |
random_device rd; | |
default_random_engine eng(rd()); | |
uniform_int_distribution<int> distr(1, 2); | |
vector<string> dodosuko; | |
int max_loop=10000, loop=0; | |
for(loop=0;loop<max_loop;loop++) | |
{ | |
int rnd = distr(eng); | |
if(rnd==1) | |
{ | |
string dodo = "ドド"; | |
dodosuko.push_back(dodo); | |
cout<<dodo<<endl; | |
} | |
else | |
{ | |
string suko = "スコ"; | |
dodosuko.push_back(suko); | |
cout<<suko<<endl; | |
} | |
if(dodosuko.size()>=12) | |
{ | |
string judge; | |
for(int i=0;i<12;i++) | |
judge+=dodosuko[i]; | |
if(judge=="ドドスコスコスコドドスコスコスコドドスコスコスコ") | |
{ | |
cout<<"ラブ注入♡"<<endl; | |
break; | |
} | |
else | |
{ | |
dodosuko.erase(dodosuko.begin()); | |
} | |
} | |
} | |
if(loop == max_loop) | |
cout<<"loop has reached "<<max_loop<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment