When writing 'Hello World' isn't cool anymore !

Source code of the YouTube video : https://www.youtube.com/shorts/N4O4Mrmo8c0

Click here to go to the source code notebook.

Code :

#include <bits/stdc++.h>

using namespace std;

#define ll long long int

#define ode ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)

#define all(a) (a).begin(), (a).end()

#define nl "\n"

#define rr return;

void solve()

{

    // ./a.exe

    register string s;

    register char c = 'a';

    register string d = "hello world";

    register string p = "           ";

    register ll i, j, k, n = 12, x;

    // for(i=0;i<n;i++){

    //     char z=0;

    //     p[i]=z;

    // }

    // p[3]++;

    // cout<<p;

    // k = 0;

    for (i = 0; i < n; i++)

    {

        for (j = 0; j < 1e7; j++)

        {

            if (p[i] == d[i])

            {

                i++;

            }

            cout << p;

            cout << nl;

            p[i]++;

            for (x = 0; x < 1e5; x++)

            {

                ll h = 0;

                h += h;

            }

        }

        // k++;

        cout << nl;

    }

    //     if(d==p){

    //         rr

    //     }

    // }

}

signed main()

{

    ode;

    register ll testCase = 1;

    // cin >> testCase;

    while (testCase--)

    {

        solve();

    }

    return 0;

}



Post a Comment

Previous Post Next Post