Barakat.'s blog

By Barakat., history, 11 months ago, In English

Hello Codeforces,
Just got TLE on 2116C - Gellyfish and Flaming Peony using __gcd, but after switching to gcd from <numeric>, my code got AC!

TLE Submission (using __gcd): Submission #322284306
AC Submission (using std::gcd): Submission #322321593

I couldn't find a clear reason online for this difference.
If anyone knows why this happens, please share in the comments section!

Full text and comments »

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

By Barakat., history, 20 months ago, In English

Hello, Codeforces Community!

I'm excited to share with you my video solution for Problem (C. Guess The Tree) from Codeforces Round 967 (Div. 2). In this video, I walk through the problem statement, discuss the thought process behind the solution, and provide a detailed step-by-step explanation of the solution.

You can watch the video solution here: Video Tutorial in Arabic

MY submission: 277407121

Feel free to leave your thoughts, questions, or suggestions in the comments below.

Full text and comments »

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

By Barakat., history, 21 month(s) ago, In English

Hello, Codeforces Community!

I'm excited to share with you my video solution for Problems A B C D from Educational Round 168 (Div. 2). In this video, I walk through the problem statement, discuss the thought process behind the solution, and provide a detailed step-by-step explanation of the solution.

You can watch the video solution here: Video Tutorial in Arabic

Feel free to leave your thoughts, questions, or suggestions in the comments below.

Full text and comments »

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