Last active
August 10, 2022 07:12
-
-
Save dwatanabee/9dc89d2c9830bd24078c83151441233e to your computer and use it in GitHub Desktop.
Revisions
-
dwatanabee revised this gist
Aug 10, 2022 . 1 changed file with 9 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,9 +9,9 @@ int main() 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); @@ -28,15 +28,16 @@ int main() 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 @@ -46,5 +47,8 @@ int main() } } if(loop == max_loop) cout<<"loop has reached "<<max_loop<<endl; return 0; } -
dwatanabee revised this gist
Aug 9, 2022 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,6 @@ int main() default_random_engine eng(rd()); uniform_int_distribution<int> distr(1, 2); vector<string> dodosuko; int max_loop=100; for(int loop=0;loop<max_loop;loop++) -
dwatanabee revised this gist
Aug 9, 2022 . 1 changed file with 2 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ int main() default_random_engine eng(rd()); uniform_int_distribution<int> distr(1, 2); vector<string> dodosuko; bool flag=true; int max_loop=100; for(int loop=0;loop<max_loop;loop++) @@ -38,19 +38,13 @@ int main() if(judge=="ドドスコスコスコ") { cout<<"ラブ注入♡"<<endl; break; } else { dodosuko.erase(dodosuko.begin()); } } } return 0; -
dwatanabee created this gist
Aug 9, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,57 @@ #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; bool flag=true,super_break=false; int max_loop=100; for(int 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()>=4) { string judge; for(int i=0;i<4;i++) judge+=dodosuko[i]; if(judge=="ドドスコスコスコ") { cout<<"ラブ注入♡"<<endl; super_break=true; } else { dodosuko.erase(dodosuko.begin()); } if(super_break) break; } if(super_break) break; } return 0; }