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

×

What is the meaning of this constraint?

In the Chef and the Patents problem there is a constraint: 1 ≤ sum of K over all test cases ≤ 107

What does this imply?

asked 11 Feb '18, 20:41

montycs's gravatar image

0★montycs
1057
accept rate: 0%


Suppose there are T test cases. Let the value of K in ith test case be $K[i]$.
Then, this constraint means that

$K[1]+K[2] .... K[T-1] +K[T] <= 10^7$

link

answered 11 Feb '18, 21:31

taran_1407's gravatar image

5★taran_1407
4.0k31104
accept rate: 22%

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:

×2,739
×1,424

question asked: 11 Feb '18, 20:41

question was seen: 215 times

last updated: 11 Feb '18, 21:31