Блог пользователя S.P.A.R.K

Автор S.P.A.R.K, история, 2 года назад, По-английски

Isn't there a way for me to find the test cases which are hitting wrong on codeforces platform. Here is my submission :

Problem D

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

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

Автор S.P.A.R.K, история, 2 года назад, По-английски

My solution to the problem 1665C - Tree Infection : 153109990 gives WA on test6 and i am unable to find the corner case . If possible, please help correcting my solution

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

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

Автор S.P.A.R.K, история, 3 года назад, По-английски

i was on this problem for a while 1538G - Gift Set , i wrote my code 120665262 / https://codeforces.com/contest/1538/submission/120665262 for solution.

it gives WA on test case 2 where 1103rd numbers do not match.

i used basic geometry to solve the problem.(mayb its called linear programming — i dont know exactly.)

Anyone having suggestions what m doing wrong here. THANKS.

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

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

Автор S.P.A.R.K, история, 3 года назад, По-английски

I was trying to solve 1529C - Parsa's Humongous Tree.

i used the below code which gave memory limit exceeded.

117290969

then i used fill() instead of clear() function which was also used in the tutorials. And i got my soln ac.

117291317

I used clear() in first code whereas fill() in the later one. WHAT IS THE DIFFERENCE BETWEEN THOSE TWO??

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

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