Блог пользователя FRB_MESSI_3MK

Автор FRB_MESSI_3MK, история, 11 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • +17
  • Проголосовать: не нравится

Автор FRB_MESSI_3MK, история, 11 месяцев назад, По-английски

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

Полный текст и комментарии »

  • Проголосовать: нравится
  • -4
  • Проголосовать: не нравится

Автор FRB_MESSI_3MK, история, 11 месяцев назад, По-английски

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 ?

Полный текст и комментарии »

  • Проголосовать: нравится
  • -7
  • Проголосовать: не нравится

Автор FRB_MESSI_3MK, история, 12 месяцев назад, По-английски

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 - Ладья 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!

Полный текст и комментарии »

  • Проголосовать: нравится
  • -17
  • Проголосовать: не нравится

Автор FRB_MESSI_3MK, история, 21 месяц назад, По-английски

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://codeforces.me/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://codeforces.me/contest/1795

my main account link : https://codeforces.me/profile/FRB_husen

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

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

https://codeforces.me/contest/1795/problem/A

https://codeforces.me/contest/1795/problem/B

Полный текст и комментарии »

  • Проголосовать: нравится
  • -29
  • Проголосовать: не нравится