lusho's blog

By lusho, history, 4 years ago,

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

By lusho, history, 4 years ago,

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

By lusho, history, 4 years ago,

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

By lusho, history, 4 years ago,

i have seen in different codes this instruction

#endif

and my question is what does it mean?

• +1

By lusho, history, 4 years ago,

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

By lusho, history, 5 years ago,

• 0

By lusho, history, 5 years ago,

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