lusho's blog

By lusho, history, 7 years ago, In English

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

Full text and comments »

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

By lusho, history, 7 years ago, In English

Why this code is giving me WA in 811C - Владик и запоминающаяся поездка, i used DP the tipical take or not take:

here is my code: 27467986

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By lusho, history, 7 years ago, In English

Hello Codeforces!

I was solving this problem

http://codeforces.net/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?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By lusho, history, 8 years ago, In English

i have seen in different codes this instruction

#ifdef ......

...

#endif

and my question is what does it mean?

Full text and comments »

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

By lusho, history, 8 years ago, In English

Hi Codeforces Community.

Can any one of you explain me this problem:

http://codeforces.net/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?

Full text and comments »

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

By lusho, history, 9 years ago, In English
  • Vote: I like it
  • 0
  • Vote: I do not like it

By lusho, history, 9 years ago, In English

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

Full text and comments »

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