# Constraints

**URL:** <https://discuss.codechef.com/t/constraints/248>\
**Category:** faq\
**Tags:** constraints\
**Created:** [June 4, 2012, 7:26am UTC](https://discuss.codechef.com/t/constraints/248 "2012-06-04T07:26:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ritesh\_gupta](https://discuss.codechef.com/user_avatar/discuss.codechef.com/ritesh_gupta/32/36_2.png) [@ritesh\_gupta](https://discuss.codechef.com/u/ritesh_gupta)\
**Post date:** [June 4, 2012, 8:47am UTC](https://discuss.codechef.com/t/constraints/248/2 "2012-06-04T08:47:18Z")

</div>

Constraint Means the _upper and lower limits_ of Input Data.It also means the Set of Valid Input Data.

```
1 <= T <= 1000 //Means the value of T in Input Data set is greater than or equal to 1
                      //and less than or equal to 1000

5 <= A[K] <= 100 //means the value of each member of Array A is greater than or equal to 5
                     //and less than or equal to 100

```

**Code-chef is very serious** , **they wont give u the data that is not allowed or that does not satisfy the constraint**.Code-chef infact **guarantee** that there is no test data that does not satisfy the given constraint.

" _if user try to input data that is not allowed ask him again for data or it is just to let us see the limits of input_"

Well it never gives such data .You don’t have to unnecessarily check and skip every-time while Taking Input.

---

_[View the full topic](https://discuss.codechef.com/t/constraints/248)._
