input
stringlengths 1k
1k
| output
sequencelengths 1
1
| id
stringlengths 41
41
|
---|---|---|
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/07/1726
Output:
| [
"1"
] | task1403-cda4649b4dbc4c21906d81541db9f11f |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/20/1719
Output:
| [
"1"
] | task1403-0b54c3bc4aef4d259ec8005ac95dfaab |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/26/1622
Output:
| [
"0"
] | task1403-718d4824ca9d4d6b922b6637090c7bb1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/41/1854
Output:
| [
"0"
] | task1403-fb7dbc517dfd4198b4fdf4b4dd84c9bb |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/29/1794
Output:
| [
"0"
] | task1403-ec3a06f2a31d4c779c85f19be0496642 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/06/1062
Output:
| [
"1"
] | task1403-dd8bb2c0dd0a41568c6eac5f97789c02 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/06/1094
Output:
| [
"0"
] | task1403-a78485618b3540f78f8a3e32d23d9c51 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/43/1764
Output:
| [
"0"
] | task1403-269d5416096748df8401ca926d43fdf6 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/35/1583
Output:
| [
"0"
] | task1403-3ecf030c9add48aea874b5e2d971322a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/26/1839
Output:
| [
"0"
] | task1403-2ab9ea13427b456b9c1182a191135cbb |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 07/18/1860
Output:
| [
"1"
] | task1403-10895d0cab554722b59ec6fd480e455d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/02/1833
Output:
| [
"1"
] | task1403-3a2e87e15d49411f8e68306c9aa622a9 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/18/1792
Output:
| [
"1"
] | task1403-3b256d2d8fb646638f1595699508ef94 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 16/08/1108
Output:
| [
"0"
] | task1403-f35a2a0637624b7e8d0fed6a84c893ec |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/05/1722
Output:
| [
"0"
] | task1403-361ef114041a481d97cdfb7d66471b0f |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 12/20/1207
Output:
| [
"1"
] | task1403-fc68c013fde1430a99c164ae8f152c27 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 12/16/1008
Output:
| [
"1"
] | task1403-724253ec4e364e42afaf0e3b19c684cf |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/40/1159
Output:
| [
"0"
] | task1403-ad59894bf70646da95d9bf5443f814ff |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/44/1101
Output:
| [
"0"
] | task1403-28bbe827f25848d28af6836e6d98da07 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/16/1554
Output:
| [
"0"
] | task1403-def3650660724c8b935fc9859e873ddd |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/04/1403
Output:
| [
"0"
] | task1403-dff606859dde4ccd89a240ff15a8b412 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/40/1881
Output:
| [
"0"
] | task1403-a70cfb8d6eba4ad2a6668b2b24097690 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 12/35/1542
Output:
| [
"0"
] | task1403-48d0464606644ff3b423f253866e1ce8 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/06/1805
Output:
| [
"0"
] | task1403-5765db8597564001ac0b94340dd7ead1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/40/1182
Output:
| [
"0"
] | task1403-77518c135b574cf69c9bd84d9033ca48 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/23/1113
Output:
| [
"1"
] | task1403-6893f3b40b7344bdb845f06c8584a39f |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/36/1300
Output:
| [
"0"
] | task1403-93c59310187348a4949133ad20ffccf0 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/34/1385
Output:
| [
"0"
] | task1403-d6864cb83e3c4447a8242c125fdee9ce |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/23/1388
Output:
| [
"1"
] | task1403-43e0aed940f446f7b54f0a53e883acea |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/09/1089
Output:
| [
"1"
] | task1403-ea76e7fc3fec478f85fd5944e415b8b1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/14/1137
Output:
| [
"0"
] | task1403-5372025deb9e4043bb6776d42fb0016a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/11/1429
Output:
| [
"1"
] | task1403-70419f3158ae4ef6b0be95e254a58cdd |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/33/1609
Output:
| [
"0"
] | task1403-bfd435cced0142c88e55e1aa60ac8efd |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/35/1457
Output:
| [
"0"
] | task1403-2e31d4ef9f6541dc9508a8bc54334afe |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/01/1468
Output:
| [
"1"
] | task1403-3f050fc1daf04a46be786e947a712917 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/38/1352
Output:
| [
"0"
] | task1403-90d1c47942844f8b873e3b7c52c3654c |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/37/1977
Output:
| [
"0"
] | task1403-88dae82bf4f14d459ae26d05ffa78f3a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/14/1228
Output:
| [
"1"
] | task1403-917a6b1dc1114316ba67ce5edd6e015a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 08/02/1332
Output:
| [
"1"
] | task1403-0c2b4881a91840a79ae0f084321a14b1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/05/1105
Output:
| [
"1"
] | task1403-32bc8199b50543cb8f03d5a679d0847a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/20/1003
Output:
| [
"0"
] | task1403-764e8a8b78254594a7b967c6080bfdeb |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/09/1491
Output:
| [
"1"
] | task1403-2d0bc6542201489e8e263bd65dadf47b |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/09/1322
Output:
| [
"1"
] | task1403-aaa4ed0246cb4cd5aa5fe585f859a28d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/41/1063
Output:
| [
"0"
] | task1403-79dba8f6fa4b4160bc073a1febdb17f1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/33/1162
Output:
| [
"0"
] | task1403-d46d45960db841d2ae9f72ae9d9af13a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/19/1582
Output:
| [
"1"
] | task1403-ff297bca276a452da369a652e420a4c2 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/42/1220
Output:
| [
"0"
] | task1403-51cf5b608cac460da7b3cf5edccea197 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/41/1055
Output:
| [
"0"
] | task1403-b81da40d21734b05a7a813b2a12d7a90 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/30/1393
Output:
| [
"0"
] | task1403-4c8338abc1c240d4a25e51edbb3980e7 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/14/1996
Output:
| [
"1"
] | task1403-ed149e71ab7e4c6f902b127df4bff2b7 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/34/1712
Output:
| [
"0"
] | task1403-2736b0083db3469d987d9541ba54126f |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 14/17/1894
Output:
| [
"0"
] | task1403-a20e4f9ce41f408b953b88bcd5152773 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/05/1552
Output:
| [
"1"
] | task1403-4cb9d62860074572ab9e75be3855ea01 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 01/17/1230
Output:
| [
"1"
] | task1403-effc2fdc6ff64cd789815c85e458602d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/07/1293
Output:
| [
"1"
] | task1403-d02bad11f016465ba0ff1c322cb98d36 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/10/1232
Output:
| [
"1"
] | task1403-3fde1e8155804ff09e3970c324a5304c |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 01/07/1993
Output:
| [
"1"
] | task1403-28e26b23e11543469835ac57b706f268 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/26/1082
Output:
| [
"0"
] | task1403-5a2a25b284164cd8914cd920b93cc082 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/22/1776
Output:
| [
"1"
] | task1403-1b4a3d8d21284384ba8e2e05789b64a7 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/32/2008
Output:
| [
"0"
] | task1403-2568b436e06f4f8cb20042f179082e6c |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 12/22/1570
Output:
| [
"1"
] | task1403-190ef4f5a9d841cda7da8c4c2d8551bf |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/14/1792
Output:
| [
"1"
] | task1403-8691ce40d1ee4a159e367bb3aaee91e9 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/16/1551
Output:
| [
"0"
] | task1403-1a2f11a5acf84c2abad396a7ff34c0ba |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/12/1861
Output:
| [
"1"
] | task1403-362ee7925b2b4437976e9dfcc49ea7ae |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 13/08/1275
Output:
| [
"0"
] | task1403-89b92e694a1c409c9a910b438a455b30 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 11/08/1117
Output:
| [
"1"
] | task1403-d68a99bace5e4ad0b21f3aa41ce7f5f6 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/01/1940
Output:
| [
"1"
] | task1403-832b249365fb49458cb67f567ba6e0d2 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/14/1972
Output:
| [
"1"
] | task1403-977dfbb41e0d423f846eb65c51278d1f |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/34/2090
Output:
| [
"0"
] | task1403-e4e6e15e8fd94ab295da864e340d3e1c |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/09/2097
Output:
| [
"0"
] | task1403-5f664982736447b4b8ae8a5164621af3 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/32/1240
Output:
| [
"0"
] | task1403-55ec62b928d64e34ac2f7f822be30ead |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 04/45/1303
Output:
| [
"0"
] | task1403-73cd7e178b7c4cfa9296357a4c62f82d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/40/1902
Output:
| [
"0"
] | task1403-dc1b294fcb14445b82f0d469bec453f1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 18/38/1747
Output:
| [
"0"
] | task1403-bb3a0e9bd92f40e5b4059db52f516394 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/10/2063
Output:
| [
"0"
] | task1403-7f72c1511ed1424784d71795b1bcba20 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/29/1830
Output:
| [
"1"
] | task1403-3b48c0dcc282438386d4d97f1b2cb792 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/10/1275
Output:
| [
"0"
] | task1403-89fe76bbb1fb45efb40bfe30e4f85ed5 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/26/2083
Output:
| [
"0"
] | task1403-26fbfa42ab604313a68af909d7bbea09 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/15/1491
Output:
| [
"1"
] | task1403-13182006287e4654a76e3f375aee2179 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/09/2036
Output:
| [
"0"
] | task1403-7c9220e3f20b470f8c1083c388beb2eb |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/15/2053
Output:
| [
"1"
] | task1403-37273fa6c16241b7a622816297418627 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/31/2040
Output:
| [
"0"
] | task1403-a095de2f99824e69a4cb1339d5eed0e3 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/18/1272
Output:
| [
"1"
] | task1403-f0aa4f3179bb4f09bfd9a7f5aa891c34 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/45/1175
Output:
| [
"0"
] | task1403-5cb60381e0ab4c918d5b1fb118fbd8c0 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 01/39/1327
Output:
| [
"0"
] | task1403-9d8865aeb095499382ad67df9b2a6865 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/14/2030
Output:
| [
"1"
] | task1403-283feddebaef43a780ab6592c8bf212b |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 09/24/1942
Output:
| [
"1"
] | task1403-e0914ba5ca1c462f87ce0b142942e797 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/15/1325
Output:
| [
"0"
] | task1403-1d3711b4f2a44c2b99d1868a80da94b5 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 07/18/1466
Output:
| [
"1"
] | task1403-5a49dfb4ba794aa1979e1b5b89120250 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/26/1529
Output:
| [
"1"
] | task1403-54b084ed569447b398e1b0a5ab365a1b |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/20/1646
Output:
| [
"1"
] | task1403-0f54cae9e8b5403a8120c071a8c3458d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 06/14/1497
Output:
| [
"1"
] | task1403-712a1d3c6eb44431b1f39361bce16a98 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 07/07/1550
Output:
| [
"1"
] | task1403-9cfd150f1f014b4294d97bea01c9e0c1 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/20/1539
Output:
| [
"1"
] | task1403-b05b3d24739145dc866a45b2612e16a9 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 05/28/1500
Output:
| [
"1"
] | task1403-851a09f6e6ae4c319e5f349ac95e8539 |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 03/38/1456
Output:
| [
"0"
] | task1403-285baf6b790941b58f6d7749b8fbc24d |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 02/35/1392
Output:
| [
"0"
] | task1403-0b89827642024e0fb4cf0992804c2bda |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 10/25/1162
Output:
| [
"1"
] | task1403-f2036439cdec4f499dea9f7f890f249e |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 17/14/1915
Output:
| [
"0"
] | task1403-c4af598b21074b5cb644ce163c54c49a |
Definition: In this task, you are given a date in "mm/dd/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 is the components month("mm"), day("dd") and year("yyyy") are all valid individually. A day(dd) is valid if it is greater than or equal to 1 and less than 30 or 31 depending upon the month(mm). Months which have 31 days are January, March, May, July, August, October, December. Rest of the months have 30 days except February which has 28 days if it is not a leap year and 29 days if it is a leap year. 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: 14/25/1405
Output: 0
Positive Example 2 -
Input: 07/29/1617
Output: 1
Negative Example 1 -
Input: 04/27/2045
Output: 0
Negative Example 2 -
Input: 07/33/2069
Output: 1
Now complete the following example -
Input: 15/31/2002
Output:
| [
"0"
] | task1403-27252986387f4f4db3cb896941de3980 |
End of preview. Expand
in Dataset Viewer.
Dataset Card for Natural Instructions (https://github.com/allenai/natural-instructions) Task: task1403_check_validity_date_mmddyyyy
Additional Information
Citation Information
The following paper introduces the corpus in detail. If you use the corpus in published work, please cite it:
@misc{wang2022supernaturalinstructionsgeneralizationdeclarativeinstructions,
title={Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Tasks},
author={Yizhong Wang and Swaroop Mishra and Pegah Alipoormolabashi and Yeganeh Kordi and Amirreza Mirzaei and Anjana Arunkumar and Arjun Ashok and Arut Selvan Dhanasekaran and Atharva Naik and David Stap and Eshaan Pathak and Giannis Karamanolakis and Haizhi Gary Lai and Ishan Purohit and Ishani Mondal and Jacob Anderson and Kirby Kuznia and Krima Doshi and Maitreya Patel and Kuntal Kumar Pal and Mehrad Moradshahi and Mihir Parmar and Mirali Purohit and Neeraj Varshney and Phani Rohitha Kaza and Pulkit Verma and Ravsehaj Singh Puri and Rushang Karia and Shailaja Keyur Sampat and Savan Doshi and Siddhartha Mishra and Sujan Reddy and Sumanta Patro and Tanay Dixit and Xudong Shen and Chitta Baral and Yejin Choi and Noah A. Smith and Hannaneh Hajishirzi and Daniel Khashabi},
year={2022},
eprint={2204.07705},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2204.07705},
}
More details can also be found in the following paper:
@misc{brüelgabrielsson2024compressserveservingthousands,
title={Compress then Serve: Serving Thousands of LoRA Adapters with Little Overhead},
author={Rickard Brüel-Gabrielsson and Jiacheng Zhu and Onkar Bhardwaj and Leshem Choshen and Kristjan Greenewald and Mikhail Yurochkin and Justin Solomon},
year={2024},
eprint={2407.00066},
archivePrefix={arXiv},
primaryClass={cs.DC},
url={https://arxiv.org/abs/2407.00066},
}
Contact Information
For any comments or questions, please email Rickard Brüel Gabrielsson
- Downloads last month
- 58