Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

iamdumdum's blog

By iamdumdum, history, 6 hours ago, In English

Hello, everyone. This is Dumdum. Dumdum has become expert. Dumdum didn’t think he could become expert with his tiny brain. Dumdum is happy

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By iamdumdum, history, 20 months ago, In English

Goodbye everyone. I think I have reached my maximum potential. I have tried and tried but it seems I can no longer improve my coding skills and my rating. Maybe being a specialist is the best thing I will ever achieve in my life. Which isn't even an achievement at all. At least I am in the top 50th percentile in coding. Maybe if Meta or google cuts off half of it's employees, I may still survive with my 50th percentile score. Regardless, life sucks. I need to look for a job right now. I think I will just enjoy some mediocre html developing job in my mediocre life.

So, that is why, guys. After over 1 month of competitive programming I have decided to quit being a competitive programmer and teach newbies on programming. Or I will just... do some html development I guess.

Full text and comments »

  • Vote: I like it
  • -22
  • Vote: I do not like it

By iamdumdum, history, 21 month(s) ago, In English

Hello guys, welcome to my blog. I am DumDum and today we are going to do our first beginner tutorial on C++.

Today we will start with the most beginner stuff, printing a line in C++.

I will just copy and paste my template, wait a second...

//This is a comment, in a comment you can write whatever shid you want to write, the compiler won't complain
#include <bits/stdc++.h>
#include <limits>

using namespace std;
typedef long long int lli;
#define prnt(a) cout << a << "\n"
#define prnt2(a, b) cout << a << " " << b << "\n";
#define forp1(a) for (lli i = 0; i < a; i++)
#define forp2(a, b) for (lli i = a; i < b; i++)
#define forf(a, b, c) for (lli i = a; i < b; i += c)


int main()
{
    ios_base::sync_with_stdio(false);  
    cin.tie(0);
    
    //YOu see, commputers are dumb, they don't understand human language. So we can't print 
    //letter directly. But don't lose hope, their is a trick to make computers write our language
    //Let's start by printing "I am too dumb to program :("
    string s = "I am too dumb to program :(";

    //The compiler thakes the string, and converts it into an array of numbers
    //It's stored somewhere in your desktop, you will need an electron microscope to see them
    //We are going to use this numbers to print them in human readable language

    //Since computers don't understand characters, we will need to convert them into numbers
    //binary numbers more specifically. As you see, computer understands only 0 and 1.
    //Fortunately, the compiler here can help us convert numbers into their binary form

    for (int i = 0; s[i] != '\0'; i++){
        int n = 1;
        n <<= 1;

        //Here goes a small efficiency boost to improve the average complexity of the programm
        //Since humans use mostly letters, this is like to speed up you process by some number
        //I am bad at maths :(
        if (s[i] >= 'a' && s[i] <= 'z') {
            n |= 1;
        }
        else if (s[i] > 'Z' || s[i] < 'A'){
            n >>= 1;
        }
        n <<= 5;                
        //I am too dumdum to handle this
        while (n != s[i]){
            int temp = n;
            lli x = 1;
            while (temp & 1){
                temp >>= 1;
                x <<= 1;
                x |= 1;
            }
            n ^= x;

        }
        cout << (char) n;        
    }
    //Yes, programming is hard, don't complain
}

And here we go, we have learnt to print a string!

The tutorial is too big to post in a single blog. Um, I will ask my Indian friend to upload a video on this

Full text and comments »

  • Vote: I like it
  • -2
  • Vote: I do not like it

By iamdumdum, history, 21 month(s) ago, In English

I am struggling with 800R problems. 800 is too high for me. Why is 800 the lowest rating in codeforces

Full text and comments »

  • Vote: I like it
  • +14
  • Vote: I do not like it