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

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

Thank you for participating in our contest, share your solutions and ideas in the comments.

Problem A: GCD MEX

Problem Author: Go8, Tutorial By: Hosen_ba

Tutorial
Code

Problem B: Random Shuffle?

Problem Author: JaberSH1

Tutorial
Code

Pproblem C: Pizza Man

Problem Author:Hosen_ba, Tutorial By: Hosen_ba

Tutorial
Binary Search Code
No Binary Search Code

Problem D: Master of the Arena

Problem Author: EyadBT, Tutorial Writen By: Hosen_ba

Tutorial
Code

Problem E: Clean White Paths

Problem Author: Hosen_ba, Tutorial Writen By: Hosen_ba

Tutorial
Code

Problem F: meen 3mk?

Problem Author:Hosen_ba

Tutorial
Code

Problem G: Nim Game In Byteland

Problem Author: EyadBT

Tutorial
Code

Problem H: Minimum Path

Problem Author:Hosen_ba, Tutorial By: Hosen_ba

Tutorial
Code

Problem I: Reverse and Remove

Problem Author:Hosen_ba, Tutorial By: Hosen_ba

Tutorial
Code

Problem J: Prefix GCD

Problem Author: JaberSH1, Tutorial By: Go8 and Hosen_ba

Tutorial
Code

problem K: And X Elements

Problem Author: EyadBT, Tutorial By: Hosen_ba

Tutorial
Code

Problem L: Equalize

Problem Author: JaberSH1, Tutorial By: Hosen_ba

Tutorial
Code

problem M: Maximum Or Permutation

problem Author: Go8, Tutorial By: Hosen_ba

Tutorial
Code

Forgive me for my bad english I tried my best with this tutorial, any feedback is appreciated.

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

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

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

We would like to invite you to participate in The 2025 Aleppo Collegiate programming contest that was held on the 17 of july in Aleppo, Syria.

The problems were authored and prepared by: JaberSH1, Go8, EyadBT, Grizoo, Mohammad_Hacker and me.

Thanks to testers: Um_nik, Adam_GS, Wael_Zaiback, FetFot, Mohanad_Nahhal, ali2005_syr, Khaled_Al_Awad, Ahmed_Ashraf_f, Georgegg, AnasMaged, M0N, Moatazoleq, 7oka, Alaatnt, PixelMaster, Omar_Al_Midani, KinanAyed, Future_Hustler, Hamzeh_Miqdad, Khaled_Mardini.

Any feedback will be appreciated in the comments.

Hope you have fun participating in this contest.

Upd: Tutorial is out.

Judges visiting Aleppo castle

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

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

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

We are happy to invite you to participate in 2024 Tishreen Collegiate Programming Contest that was held on the 25th of June in latakia, Syria.

The problems are authored and prepared by ahmad_alghadban, Ahmad7_7, Zaher, Go8, EyadBT, JaberSH1, Khaled_Mardini, SaeedSabbagh, Neodoomer, Yaman_Alwaza, OmarAlzakout, and me.

Thanks to The_Hallak, AmmarDab3an, Bisher_Sahloul, SUL, THE_THUNDERSTORM_BEGINS, Grizoo,skahl15, Khaled_Al_Awad, AhmadSelo, abd-alrzaq, and kareem_Bizreh for testing the contest.

We would love to hear your feedback on the problems in the comments section. Hope you enjoy solving the problems!

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

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

Автор Hosen_ba, история, 3 года назад, По-английски

Has anyone solved any of these two problems using Dominator Tree?

https://cses.fi/problemset/task/1703

https://cses.fi/problemset/task/1203

Unfortunately my code is failing on a couple tests.

I'd really appreciate it if anyone provides an accepted code using Dominator Tree.

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

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

Автор Hosen_ba, история, 3 года назад, По-английски

Hi, Codeforces.

Recently I have been thinking of the following task:

You are given a tree with $$$N$$$ vertices, each vertex $$$v$$$ has a value $$$a_v$$$ written on it, and you have to process following query ONLINE. given two vertices $$$u$$$ and $$$v$$$, you have to output the MEX of the values on the path from $$$u$$$ to $$$v$$$. The values are not necessarily distinct.

constrains: $$$N$$$<=1e5

If anyone can share any ideas, I will be extremely grateful.

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

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