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

Автор lusho, история, 7 лет назад, По-английски

Hello Codeforces! I dont know why my code is giving me WA

http://www.spoj.com/problems/SUBMERGE/

i just use the articulation point algorithm. but still giving me WA

https://ideone.com/nHXAGO

my code

UPD: I solve it just need an extra Vector in order to mark the articulation point and then count XD

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

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

Автор lusho, история, 7 лет назад, По-английски

Why this code is giving me WA in 811C - Vladik and Memorable Trip, i used DP the tipical take or not take:

here is my code: 27467986

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

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

Автор lusho, история, 7 лет назад, По-английски

Hello Codeforces!

I was solving this problem

http://codeforces.com/contest/810/problem/C

and it gives me a lot of WA, here is my code

27302116

but after that I got an AC, because i just implemented this "+Mod" in this line

-- Sum=(Sum-der)%Mod;

And finally I stay like this

-- Sum=(Sum+Mod-der)%Mod;

27302107

why does it happened?

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

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

Автор lusho, история, 7 лет назад, По-английски

i have seen in different codes this instruction

#ifdef ......

...

#endif

and my question is what does it mean?

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

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

Автор lusho, история, 7 лет назад, По-английски

Hi Codeforces Community.

Can any one of you explain me this problem:

http://codeforces.com/contest/760/problem/C

i read it a lot of times but I did not understand or please explain me the examples how does the process go?

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

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

Автор lusho, история, 8 лет назад, По-английски
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

Автор lusho, история, 8 лет назад, По-английски

Hello Codeforces community, I am in the International Olympiad of Informatics (IOI) and i would like to ask you , how can i improve my logic skills, my Programming Skills, what kind of Algorithm may i know in order to succed in this Olympiad , thaks you , and sorry for my bad English

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

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