Skip to content

Instantly share code, notes, and snippets.

@dwatanabee
Last active August 10, 2022 07:12
Show Gist options
  • Select an option

  • Save dwatanabee/9dc89d2c9830bd24078c83151441233e to your computer and use it in GitHub Desktop.

Select an option

Save dwatanabee/9dc89d2c9830bd24078c83151441233e to your computer and use it in GitHub Desktop.

Revisions

  1. dwatanabee revised this gist Aug 10, 2022. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions dodosuko.cpp
    Original 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=100;
    int max_loop=10000, loop=0;

    for(int loop=0;loop<max_loop;loop++)
    for(loop=0;loop<max_loop;loop++)
    {
    int rnd = distr(eng);

    @@ -28,15 +28,16 @@ int main()
    cout<<suko<<endl;
    }

    if(dodosuko.size()>=4)
    if(dodosuko.size()>=12)
    {
    string judge;
    for(int i=0;i<4;i++)
    for(int i=0;i<12;i++)
    judge+=dodosuko[i];

    if(judge=="ドドスコスコスコ")
    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;
    }
  2. dwatanabee revised this gist Aug 9, 2022. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion dodosuko.cpp
    Original 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;
    bool flag=true;
    int max_loop=100;

    for(int loop=0;loop<max_loop;loop++)
  3. dwatanabee revised this gist Aug 9, 2022. 1 changed file with 2 additions and 8 deletions.
    10 changes: 2 additions & 8 deletions dodosuko.cpp
    Original 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,super_break=false;
    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;
    super_break=true;
    break;
    }
    else
    {
    dodosuko.erase(dodosuko.begin());
    }

    if(super_break)
    break;
    }

    if(super_break)
    break;
    }

    return 0;
  4. dwatanabee created this gist Aug 9, 2022.
    57 changes: 57 additions & 0 deletions dodosuko.cpp
    Original 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;
    }