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

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

need help in this question. question ask you to implement two types of lazy trees one for update and one for sum. I did all I could but i am unable to find the bug. please help me .

my code
test case
required ans
my answer


it would also be help full if you know some blog or toutorial to solve similar problem. thanks in advance guys for helping.

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

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

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

I got bored with solving and wanted to do something which is related to cp and also very fun so i decided to write this tutorial.bare me for my bad English .

how to solve grid problems

trick

1) counting rooms

explanation
code

2) Labyrinth

explanation
code

3) Building Roads

explanation
code

4) Message Route

explanation
code

5) Building teams

explanation
code

6) Round Trip

explanation
code

7) Monsters

explanation
code

8) Shortest Routes I

explanation
code

9) Shortest Routes II

explanation
code

10) High scores

explanation
code

11) Flight Discounts

explanation
code

12)Finding Cycles

explanation
code

13) Flight Routes

explanation
code

14) round trip 2

explanation
code

15) Course Schedule

explanation
code

16) Longest flight routes

Explanation
code

17) Game Routes

Explanation
code

18) Investigation

Explanation
code

19) Planet queries I

explanation
code

other useful links


Hope this is helpfull to you . I will try to add more as I solve furthure.

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

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

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

hello i am arham doshi i want to take part in contest every day.but every day is not a contest day so i am thinking of take part in virtuals but if i can find a partner with whom i can take part in vc everyday and upsove next day it would be great for both of us.

so i am finding a friend preferably 1400 — 1700 . if you are interested plz comment .

ps: i want to take part i contest every day for 30 streak.it might help improve my rating and yours to.i have a blog about same and highly motivated about it. i am also looking for general friends :)

we are already 10 people so we cannot add more i you want i will keep posting link of vc that we give

  1. day 1 (26:feb) contest 841
  2. day 2 (27:feb) https://www.codechef.com/UWCOI20
  3. day 3 (28:feb) educational 1
  4. Day 4 (29:feb) educational 54
  5. day 5 (1:mar) official(div 2 -625)
  6. day 6 (2:mar) educational 2

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

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

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

my code here is similar to tutorials code my logic is same and i am getting wa. tutorials code Your text to link here...

can you please tell what is wrong in my code or i am wa on 2nd testcase 581 th sub test case , can you tell me testcase were my code fails

thanks in advance.

story(if you want to read) i was solving this question and i got wa on contest , i thought that my logic would be wrong and i moved to next question .then i again saw the tutorial and i got exactly same logic , i again wrote the code(after seeing tutorial) and again wa .i compared my code here and tutorials code Your text to link here... and i couldn't find the difference .

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

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

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

I am learning this topic of graph ,and i tried to solve basic problem of this to test my understanding.

i saw vedio from algorithms live and gone through cp algorithm blog.then i tried to solve problem in hacker earth this question and i got wa i tried till 2 hours to degub then left it this is my code.

then i tried another question on jans'light oj this problem but here also i got runtime errorthis is my code .

then i tried to solve a problem on spoj this question and again got wa my solution .

i am very demotivated now ,can some one find bug in any of my 3 plz ,plz help thanks in advance.

ps:i am not getting basic level question of cut point and bridges on code forces if you know plz share i would be very thank full.

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

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