You are not logged in. Please login at www.codechef.com to post your questions!

×

Enormous input runtime error

This is link to solution!!It compiles fine in my compiler but fails in codechef compiler!!!! https://www.codechef.com/viewsolution/14414251

asked 06 Jul, 08:00

hari123_'s gravatar image

0★hari123_
1
accept rate: 0%


Increase your array size first. Why is it only upto 30 when number of elements can be till 10^7?

Also, you dont need to verify n and k, they will be according to constraints

link

answered 06 Jul, 08:47

vijju123's gravatar image

4★vijju123 ♦
11.3k1316
accept rate: 18%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×379
×143
×17

question asked: 06 Jul, 08:00

question was seen: 108 times

last updated: 06 Jul, 08:47