input
stringlengths 936
936
| output
sequencelengths 1
1
| id
stringlengths 41
41
|
---|---|---|
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/04/1142
Output:
| [
"1"
] | task1333-47e56b131aaa4f5088fb9bb1cbd627fc |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 34/18/1064
Output:
| [
"0"
] | task1333-c03e40753abf404a84e6b563e91f8fe1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 40/12/1106
Output:
| [
"0"
] | task1333-31f3ef9641574e31b3b7be245f52cc7f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 31/18/1191
Output:
| [
"0"
] | task1333-3ecc4d9a5ccf418b96462862dcc1bb33 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/06/1779
Output:
| [
"1"
] | task1333-366a2a972bfb4bdf8118bdf93bd4bdbc |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 40/10/1621
Output:
| [
"0"
] | task1333-2e17cd5398904940a0cc58c2b3705e30 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 21/06/2002
Output:
| [
"1"
] | task1333-4d2dc520a6e149eaae6de7c2fbd6e270 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 44/16/1551
Output:
| [
"0"
] | task1333-fcf1db5669a64b7e8fd6707274789d2b |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/08/1426
Output:
| [
"1"
] | task1333-9babbcf321144ab0bc00c4a574479c4c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/18/1423
Output:
| [
"0"
] | task1333-bb3c9c97cde74399aadc80c9dd6f04a2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 29/14/1076
Output:
| [
"0"
] | task1333-7e5a48c59c9b4703b3602168fc80c32d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 30/12/1493
Output:
| [
"1"
] | task1333-5153fd330e3d4b898d81e9d30498b635 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 39/14/1537
Output:
| [
"0"
] | task1333-a735a66be11d4c0c91ae065125127886 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 18/16/1866
Output:
| [
"0"
] | task1333-4549c278e07549669bfe626d26c0c689 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 02/05/1723
Output:
| [
"1"
] | task1333-23117852c2ac4bf594ee9664002fcfa5 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 18/03/1267
Output:
| [
"1"
] | task1333-a02f94a74eda416c9ebdacf82fb315ac |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/10/1429
Output:
| [
"1"
] | task1333-26d7c2f92048475398bd6b35def5fa3d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/08/1161
Output:
| [
"0"
] | task1333-4d755a0ec8e040729b534ec5ddb3c404 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 13/04/1198
Output:
| [
"1"
] | task1333-12eeeebe21fc4065b6d5881cfe56a277 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 41/18/1082
Output:
| [
"0"
] | task1333-df268c972c904a97a428af4787f81a56 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 02/02/1004
Output:
| [
"1"
] | task1333-e8de5a9de1a647afb25b4d5517b2b652 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 10/05/1027
Output:
| [
"1"
] | task1333-50a5fc5b247240ca836b947151d3dc7e |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 23/11/1365
Output:
| [
"1"
] | task1333-7b07457dfd634270ae38819f295df0d2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 31/08/1348
Output:
| [
"1"
] | task1333-0853887b49b64c3dbe460e1644920f53 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 34/13/1671
Output:
| [
"0"
] | task1333-af8650909d6742e5afd3042bfb8e023f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 31/03/1102
Output:
| [
"1"
] | task1333-64628c8feb904bebaaa4bb7ee719315b |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/04/1054
Output:
| [
"1"
] | task1333-03ce01615e2a4049805bbf822b405845 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 11/06/1904
Output:
| [
"1"
] | task1333-24ab99310e7348669a87c822fb1805da |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/11/1360
Output:
| [
"0"
] | task1333-d25fc6b6e4bf4d9c870649160f165933 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/18/1928
Output:
| [
"0"
] | task1333-6593cbeb68b7468f8bf2519e876b90b2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 37/01/1563
Output:
| [
"0"
] | task1333-6556cfd1f75346978bd5d7ea14331c2e |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 09/01/1118
Output:
| [
"1"
] | task1333-3f6706174d0f4e80ba90eaac65573d05 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/01/1823
Output:
| [
"0"
] | task1333-5a07251a9feb48a1b1f64927876ea2be |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/11/1453
Output:
| [
"0"
] | task1333-2ec1dac8f0bc4d6eb8780a129af5a8f5 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 30/17/1310
Output:
| [
"0"
] | task1333-ef60b03ca969498cab8c59682ccb4a54 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 15/17/1204
Output:
| [
"0"
] | task1333-d1e0fa87fa0d4a4290d51e4c81ab8515 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/05/1751
Output:
| [
"1"
] | task1333-b6281bbec621488195c4dfcd63e6a419 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 34/02/1447
Output:
| [
"0"
] | task1333-de2762177523485298c39d786e1edb15 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/04/2093
Output:
| [
"0"
] | task1333-4eb7850cf871431081746562c53043f8 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 34/17/1981
Output:
| [
"0"
] | task1333-d8d979a2791442dcacbdd525f843942f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 40/09/1789
Output:
| [
"0"
] | task1333-2da481b0d5c549b7b5018178d2e57928 |