FRB_MESSI_3MK's blog

By FRB_MESSI_3MK, history, 3 months ago, In English

Hello codeforces!

This is the debugging header i use in C++ wich i got from tourist and modified it a bit

Debug.h

And this is my main code:

main.cpp

The code is not complete but it can show how you define the debugger

How to use:

you type debug(value[1],value[2],...,value[n])
you can send as many values as you want and the debugger will print them

Examples:

	int a = 5;
	bool b = 1;
	char c = 'c';
	double d = 1.52;
	vector<int>v = {1,2,3};
	vector<vector<int>>vv = { {1,2,3},{5,6} };
	map<char, int>mp;
	mp['a'] = 1;
	mp['h'] = 4;
	debug(a, b, c, d);
	debug(v, vv, mp);

Output:
[a, b, c, d, e] = [5, true, 'c', 1.52]

[v, vv, mp] = [{1,2,3}, {{1,2,3},{5,6}}, {{'a',1},{'h',4}}]

Working data types:

  • int
  • char
  • double
  • float
  • long long
  • unsinged
  • string
  • vector
  • set
  • map
  • pair
  • multiset

and any data type you can iterate by for(auto it : name)

Data types that does not work

  • stack
  • queue
  • deque
  • priority_queue

and any data type you can't iterate by for(auto it : name)

How to set it:

  1. Create a header file called "Debug.h"
  2. Copy that file to your includes folder
    if you use visual studio you can open your includes folder by holding ctrl button and hovering over your main include wich is usually bits/stdc++.h > right click on the header file when it opens > show in explorer
  3. Paste the Debug.h file into the folder that just opened

OR

  1. Create a header file called "Debug.h"
  2. Leave the header file in any place
  3. Change the include from #include <Debug.h> to #include "<Header file location>"

Sorry for any typing mistakes it took me very long time to write

Full text and comments »

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

By FRB_MESSI_3MK, history, 4 months ago, In English

Hello codeforces i was having a discussion with my friend Ahmad_Hajjouz about the codeforces problems and how they are rated so i want to ask you guys is the difference in difficulity between 800 and 900 rated problems the same as the difficulity difference between 1700 and 1800

thank you <3

Full text and comments »

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

By FRB_MESSI_3MK, history, 4 months ago, In English

Problem Name:

1879B - Chips on the Board

Hello codeforces i have this problem that i've solved time ago but going through my submissions today i've found it and this is my sollution 226472257 but with 109MS time and 4700KB memory

is there any way to optimize it ?

Full text and comments »

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

By FRB_MESSI_3MK, history, 4 months ago, In English

Hopefully a stronger comeback

Hello CodeFORCES I Finally decided to comeback and train again after 9 weeks of not solving any problems on codeforces or any other websites. In 12/5/2023 I finally Participated in the Codeforces Round 913 (Div. 3) on my other account FRB_husen2 but I was only able to solve 1907A - Rook where i used to solve problem C in DIV.2 contests and somtimes solving problem E in DIV.3 contests wich made me a bit disappointed.

So I'm here guys asking you for any advices to restore my performance ?

Thank you!

Full text and comments »

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

By FRB_MESSI_3MK, history, 14 months ago, In English

help

MikeMirzayanov

mike

Hello, I wish one of the codeforces managers or staff see and review my Blog.

In the last Div.2 contest https:Educational Codeforces Round 143 (Rated for Div. 2)//codeforces.com/contest/1795 I've got skipped on problems (A,B) because what seemed to be hacking but wasn't. So i was training with my friend and he was using my second account https://mirror.codeforces.com/profile/frb_husen2 and we've worked on the codes to the problems and sent them first on this account (the one i'm writing the blog on) and the other account link on top after about 10-25 minutes.

we did't know the rules that is why we've sent the axact same codes.

i have proofs that i owne both accounts and didn't steal the codes from someone else.

please codeforces kepp my faith on you taking the skip and report back.

contest link : https://mirror.codeforces.com/contest/1795

my main account link : https://mirror.codeforces.com/profile/FRB_husen

my second account wich my friend was using during the contest : https://mirror.codeforces.com/profile/frb_husen2

the link for the problems we've got skipped on :

https://mirror.codeforces.com/contest/1795/problem/A

https://mirror.codeforces.com/contest/1795/problem/B

Full text and comments »

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