Automated grading of homework assignments and tests
- fork this repository
- solve the task
- commit with proper message
- commit with proper message
Given three integers a, b, c, check the following statement "The number b is between a and c".
Example 1:
Input: a=3 b=4 c=5
Output: True
Example 2:
Input: a=6 b=4 c=5
Output: False
Example 3:
Input: a=6 b=4 c=1
Output: True
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "Each of the numbers 'a' and 'b' is positive".
Example 1:
Input: a=5 b=3
Output: True
Example 2:
Input: a=6 b=-4
Output: False
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "Each of the numbers A and B is negative".
Example 1:
Input: a=-1 b=-3
Output: True
Example 2:
Input: a=6 b=-4
Output: False
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "Each of the numbers a and b is even".
Example 1:
Input: a=3 b=6
Output: False
Example 2:
Input: a=6 b=4
Output: True
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "Each of the numbers A and B is odd".
Example 1:
Input: a=3 b=8
Output: False
Example 2:
Input: a=9 b=1
Output: True
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "At least one of the numbers A and B is positive".
Example 1:
Input: a=-3 b=8
Output: True
Example 2:
Input: a=-9 b=-1
Output: False
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "At least one of the numbers 'a' and 'b' is negative".
Example 1:
Input: a=-3 b=8
Output: True
Example 2:
Input: a=4 b=1
Output: False
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "At least one of the numbers 'a' and 'b' is even".
Example 1:
Input: a=6 b=3
Output: True
Example 2:
Input: a=7 b=1
Output: False
Constraints:
- -1018<=num<=1018
Given two integers a, b, check the following statement "At least one of the numbers 'a' and 'b' is odd".
Example 1:
Input: a=5 b=3
Output: True
Example 2:
Input: a=4 b=9
Output: True
Constraints:
- -1018<=num<=1018
Given integer a, check the following statement "The integer is two-digit number".
Example 1:
Input: a=3
Output: False
Example 2:
Input: a=12
Output: True
Constraints:
- -1018<=num<=1018
Given integer a, check the following statement "The integer is three-digit number".
Example 1:
Input: a=3
Output: False
Example 2:
Input: a=12
Output: False
Example 2:
Input: a=123
Output: True
Constraints:
- -1018<=num<=1018
Given a two-digit integer a, check the following statement "All digits of the number are the same".
Example 1:
Input: a=32
Output: False
Example 2:
Input: a=22
Output: True
Constraints:
- -1018<=num<=1018
Given a two-digit integer a, check the following statement "All digits sum is even".
Example 1:
Input: a=45
Output: False
Example 2:
Input: a=35
Output: True
Constraints:
- -1018<=num<=1018
Given a two-digit integer a, check the following statement "All digits sum is odd".
Example 1:
Input: a=45
Output: True
Example 2:
Input: a=35
Output: False
Constraints:
- -1018<=num<=1018
Given a three-digit integer a, check the following statement "All digits sum is odd".
Example 1:
Input: a=152
Output: False
Example 2:
Input: a=335
Output: True
Constraints:
- -1018<=a<=1018
Given integer a, check the following statement "The integer is a five-digit number".
Example 1:
Input: a=15234
Output: True
Example 2:
Input: a=763
Output: False
Constraints:
- -1018<=a<=1018
Given a five-digit integer a, check the following statement "All digits of the number are in ascending order".
Example 1:
Input: a=75421
Output: True
Example 2:
Input: a=13763
Output: False
Constraints:
- -1018<=a<=1018
Given a five-digit integer a, check the following statement "All digits of the number are in descending order".
Example 1:
Input: a=75421
Output: False
Example 2:
Input: a=12347
Output: True
Constraints:
- -1018<=a<=1018
Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: x=121
Output: True
Example 2:
Input: x=10
Output: False
Example 3:
Input: x=11
Output: True
Constraints:
- 9 < x < 1000
A number consisting of one and zero is given (the number starts at once). If the number of ones is greater than zero, true, otherwise False is returned. n five-digit number.
Example 1:
Input: n=1100
Output: False
Example 2:
Input: n=10011
Output: True
Constraints:
- 0 < n < 100000
- don't copy other solutions or any solution
- don't remove comments