SPOJ Discussion board

I am getting wrong answer from judge

Online Judge System ProblemSet Archive

You have selected 0 posts.

select all

cancel selecting

kiros_123
Jan '20

My code - https://ideone.com/nxJxpD6
Problem - http://www.spoj.com/problems/HYDRO/8

I am getting correct results. I don’t know what is wrong.

  • created

    Jan '20
  • last reply

    Jan '20
  • 1

    reply

  • 678

    views

  • 2

    users

  • 2

    links

simes
Jan '20

Try this, expected answer is 11.

1
10
2 0 0 0 0 0 5 0 1 1

Suggested Topics

Topic Category Replies Views Activity
Getting WA on the problem PIE continuously, what am I missing? spoj.com ProblemSet Archive 2 178 Mar 8
What are allowed characters in task t9 ProblemSet Archive 4 216 Feb 24
AIBOHPHOBIA - LPS vs Direct Approach ProblemSet Archive 1 113 Mar 31
ABCPATH - ABC Path ProblemSet Archive 1 90 May 11
What is wrong in my code…. i’m continuously getting runtime error(SIGSEGV)COT - Count on a tree ProblemSet Archive 4 205 Feb 20

Want to read more? Browse other topics in ProblemSet Archive or view latest topics.

share a link to this topic