You are not logged in. Please login at 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

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$


answered 11 Feb '18, 21:31

taran_1407's gravatar image

accept rate: 22%

toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 11 Feb '18, 20:41

question was seen: 215 times

last updated: 11 Feb '18, 21:31