input
stringlengths 936
936
| output
sequencelengths 1
1
| id
stringlengths 41
41
|
---|---|---|
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 24/03/1603
Output:
| [
"1"
] | task1333-383afb9fbbc14cc3bcd76e1a0deb2b72 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 27/05/1093
Output:
| [
"1"
] | task1333-ee1008b904d449ce8580e878565aaf5f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 14/01/1494
Output:
| [
"1"
] | task1333-c94ec86216c34d89960399ce0bf4e627 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 24/01/1920
Output:
| [
"1"
] | task1333-e93f1ecce8304596a842051725ca685c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 10/03/1312
Output:
| [
"1"
] | task1333-6ce4cf1d11be4445852bc7e3172ab250 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 44/15/1234
Output:
| [
"0"
] | task1333-4f1d596bd7d14c82812b7a538160eaf2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/14/1201
Output:
| [
"0"
] | task1333-59af1306f3ef4020a09d2f51962447de |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 04/06/1946
Output:
| [
"1"
] | task1333-f1f176866a324dda823bac8e209af177 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 26/03/1596
Output:
| [
"1"
] | task1333-ab0dc272a816485393c6e9f64b27bf81 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 24/11/1440
Output:
| [
"1"
] | task1333-983e5dd503f0428183f1bc5d1e5e23ce |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 44/16/1861
Output:
| [
"0"
] | task1333-d1ef2325a88e41ada8b8942a21e1286f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 15/18/1730
Output:
| [
"0"
] | task1333-16e06b3b84f64b828027064f4bde34f4 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 09/10/1902
Output:
| [
"1"
] | task1333-e2013e6db7ea42a0810c1dbe5318e5d8 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 07/16/2082
Output:
| [
"0"
] | task1333-96519f222f04445fa6fafa292cdf6ab2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 01/05/1281
Output:
| [
"1"
] | task1333-5920ad7dbe90420682e46f425ae7b801 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 44/03/1011
Output:
| [
"0"
] | task1333-fc1d62e9f50b41f59b009a5a15352040 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 23/18/1184
Output:
| [
"0"
] | task1333-8f57fa847c3e45b4ad2d220d857501ac |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 17/15/1786
Output:
| [
"0"
] | task1333-dd0781dc35a6495595675b9551c009ec |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 23/05/1638
Output:
| [
"1"
] | task1333-5102d6706e724e7194e63669dcd9817c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 11/05/1590
Output:
| [
"1"
] | task1333-a50418e6b1184d3ea7417ab4ef8b7385 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/08/1988
Output:
| [
"0"
] | task1333-acddb21d5e134e008803904467cf97ab |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 21/08/1166
Output:
| [
"1"
] | task1333-fce24ba5142e4a49adb91d1a9528a1f1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 10/05/1219
Output:
| [
"1"
] | task1333-1ce912e4ba684a2ca3e39ee1f6fe93a7 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/07/1940
Output:
| [
"1"
] | task1333-e09de155a3464074b2928954e766b5d1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 18/06/1582
Output:
| [
"1"
] | task1333-4b99b7fb58ba48d8852d1e3461ac7fe2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 08/11/1623
Output:
| [
"1"
] | task1333-ef150cd7c7b3440cbc2027fcc045b86e |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 02/06/1461
Output:
| [
"1"
] | task1333-4cce7f436a3c464eaba23404ec229cd1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/05/1390
Output:
| [
"1"
] | task1333-3aa794c7d7874b998ff2bd50bdfcb1a5 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 35/17/1617
Output:
| [
"0"
] | task1333-fc898654c6634403a34e6c07f4addeb6 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 15/10/2080
Output:
| [
"1"
] | task1333-13a6043d61694f248ffcf84598ef2058 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 20/18/1487
Output:
| [
"0"
] | task1333-ae1b7a02bcdd454ebf7325d5ed07359f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 07/05/1777
Output:
| [
"1"
] | task1333-3e1172cf58814eb189f5da03cc77c49a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/08/1040
Output:
| [
"0"
] | task1333-c836dff0e28c45e0bdd1660ac401d9e6 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 35/03/1139
Output:
| [
"0"
] | task1333-46a7a53a60904387924621b0880c6ac8 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 12/01/1528
Output:
| [
"1"
] | task1333-8ddc3ae18b674d648b0d4e2960f2950c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 01/05/1658
Output:
| [
"1"
] | task1333-e7d3f16dd18445609e24a9b8e896159a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 14/11/1795
Output:
| [
"1"
] | task1333-950c00a89a7e452e947079e284356e44 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 42/13/1354
Output:
| [
"0"
] | task1333-bb7a196ffba644a693a94e96d95d3ef3 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 05/11/1832
Output:
| [
"1"
] | task1333-b6e91372ebc540c5a22f2769cb70a2d9 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/10/1496
Output:
| [
"0"
] | task1333-f3ada5f25a0747b1bef921fa5f2695c9 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 10/04/1678
Output:
| [
"1"
] | task1333-8e632fd885c9408f84489593ca3881ad |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 21/13/1929
Output:
| [
"0"
] | task1333-a231d993ce3a40adaba9ac2ac3c1267d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 02/14/1349
Output:
| [
"0"
] | task1333-27af5f12bc30490080edde2c970f824c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 39/01/1536
Output:
| [
"0"
] | task1333-62f4b0317d8b45d495c69954b19d4ef2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/12/1702
Output:
| [
"1"
] | task1333-d7a26f475f68465ca438a5e6b1be8c27 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/11/1760
Output:
| [
"1"
] | task1333-823b92a554b8465da80e83f0dc4f52a5 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 11/07/1635
Output:
| [
"1"
] | task1333-654c20b511994ff79948937aa7058af1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 43/11/1167
Output:
| [
"0"
] | task1333-2f842cfaad7f433cb9cbb4ede8d1f10f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/16/1798
Output:
| [
"0"
] | task1333-f18b327ffec54d5fb117fa65b28f0c8e |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 31/12/1412
Output:
| [
"1"
] | task1333-505c5d6831684f33b7c70631a1cde25f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 35/04/1732
Output:
| [
"0"
] | task1333-c740bcd3f82e49a49c16759b1418a7ec |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 41/13/1034
Output:
| [
"0"
] | task1333-ed51be657de047e0a5390f79df1406a4 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/16/1338
Output:
| [
"0"
] | task1333-dfd9a7219ce54950994114acf8b9be7f |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 06/06/1199
Output:
| [
"1"
] | task1333-8a2d1018f51540d09547be10e6bf572e |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 30/10/1864
Output:
| [
"1"
] | task1333-4ed1bc5a5b59440e86aa8e7283c503d2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 23/01/1615
Output:
| [
"1"
] | task1333-9eaea8d2323d403c944c94d664c1941c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/04/1275
Output:
| [
"1"
] | task1333-e58b364840da4357a46d26de1d0f18d8 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 27/13/1006
Output:
| [
"0"
] | task1333-1d913413ca8b49abb843b64237d44310 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 28/04/1444
Output:
| [
"1"
] | task1333-4d1d5f2641c5492fbcb8f45513a7a90a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/17/1844
Output:
| [
"0"
] | task1333-059cc4b5f98048da8a59580a15f11e10 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/10/1866
Output:
| [
"0"
] | task1333-2526feae0fd242329f4a27db9eaa9d54 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 14/01/1834
Output:
| [
"1"
] | task1333-261112151f2b46869ff4d5944d352090 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 07/03/2097
Output:
| [
"1"
] | task1333-b1c88a50a0df4a0785f04e176063c1df |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 09/04/1574
Output:
| [
"1"
] | task1333-326b18a48ea049f7856ad11851281389 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 39/11/1555
Output:
| [
"0"
] | task1333-6e4f9eac7aa744e1b8126283cc7e146d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/08/1700
Output:
| [
"1"
] | task1333-19ad5155729c437eb09bfc2f6f26c807 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 33/15/1572
Output:
| [
"0"
] | task1333-40f46efa54884b06a210697d69ed3d91 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/15/1593
Output:
| [
"0"
] | task1333-1eafdd2f2d9b4c43a39f78c2a5fcd625 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 21/07/1808
Output:
| [
"1"
] | task1333-5d1226e412774c9282af7c92cda5ca1c |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/10/1111
Output:
| [
"0"
] | task1333-28904ab537d24a9396694d0588e261f2 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 22/16/1976
Output:
| [
"0"
] | task1333-5328c119cf0e466d87fefb44b95d86e0 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 38/01/1874
Output:
| [
"0"
] | task1333-1a60046d14574a0fa821c8806ea40e7a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 13/03/1309
Output:
| [
"1"
] | task1333-f99602cbc59042da9421c1dff69b91d9 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 35/04/1393
Output:
| [
"0"
] | task1333-cdff38c2c2b442fea0ea47547c6205e6 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/04/2030
Output:
| [
"1"
] | task1333-bf46682196544ac1b416b852fe78485a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/11/2037
Output:
| [
"0"
] | task1333-fdbb1af0f1e54e4bb2992bd5171f7d96 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 34/14/1131
Output:
| [
"0"
] | task1333-9f7f9c1abed849129e1c0315e71bdedf |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 06/02/1673
Output:
| [
"1"
] | task1333-a87f8861967d47e1972c0acd1b7d5911 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 15/08/1309
Output:
| [
"1"
] | task1333-bf3be2c502c44e1999a1d5a10490036d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/18/1653
Output:
| [
"0"
] | task1333-c8a9a41f9d2c47d1bd07e3267e4fb6fa |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 30/09/1805
Output:
| [
"1"
] | task1333-5959f7b90ad2402198fb026954528358 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 22/15/1181
Output:
| [
"0"
] | task1333-03ffd18a6b964b3d88e4219fd5eb91fc |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 39/08/1538
Output:
| [
"0"
] | task1333-075b77d4cdc046a181e783f02c0a3428 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/15/1308
Output:
| [
"0"
] | task1333-82b0c9dcaad64e5dbd0738f1c56db9f5 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 25/14/1086
Output:
| [
"0"
] | task1333-309c711c54c04ea88b9516c6f4c009ed |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 36/16/1580
Output:
| [
"0"
] | task1333-0a3f5f5199294497892aadcb611300e4 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 29/02/1775
Output:
| [
"0"
] | task1333-2761b6fe007f45c0afc7b29d413791d0 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 35/09/1044
Output:
| [
"0"
] | task1333-2cab562e2ae74602985d7a0aaeaa3d5a |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 23/09/1341
Output:
| [
"1"
] | task1333-c55b71e16642496aa0a519b10726e5d9 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 26/13/1442
Output:
| [
"0"
] | task1333-b8a31d59a6434fc2b28abb11eead4764 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 10/09/1097
Output:
| [
"1"
] | task1333-e0a51277540c481995d1087cc8201618 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 19/16/1463
Output:
| [
"0"
] | task1333-763a6db274a944c7accb49d595813d89 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 27/16/1242
Output:
| [
"0"
] | task1333-7ff53e5856384dca95c732fc4c9d2716 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/15/2002
Output:
| [
"0"
] | task1333-f8455084907b4c609e32430eef763996 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 04/18/1269
Output:
| [
"0"
] | task1333-7b87687a1be74a508461f2b06a9dcffa |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 28/03/1470
Output:
| [
"1"
] | task1333-1ae3e34fc0cd4e4a9bb53978298e9d2d |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 45/01/1219
Output:
| [
"0"
] | task1333-a3d910ffefc04bc987e0f3ed737bcba1 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 03/07/1825
Output:
| [
"1"
] | task1333-05817646072243548c938a30999bc633 |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 27/10/1485
Output:
| [
"1"
] | task1333-c303b2ca86254e8598f85fcf493b93bf |
Definition: In this task, you are given a date in "dd/mm/yyyy" format. You need to check if the date is valid or not. Return 1 if it is valid, else return 0. A date is valid if the components day("dd"), month("mm") and year("yyyy") are all valid individually. A day(dd) is valid if it: a) lies between 1 and 31 for the months of January, March, May, July, August, October, December, b) lies between 1 and 28 for February on non-leap years and between 1-29 on leap years, c) lies between 1-30 for all other months. A month(mm) is valid if it lies in the range from 1 to 12 as there are 12 months in a year. A year is always valid if it is expressed in the form of "yyyy".
Positive Example 1 -
Input: 15/2/2014
Output: 1
Positive Example 2 -
Input: 10/18/1951
Output: 0
Negative Example 1 -
Input: 37/13/1947
Output: 1
Negative Example 2 -
Input: 15/01/2061
Output: 0
Now complete the following example -
Input: 41/14/2078
Output:
| [
"0"
] | task1333-9d26951c328b4c7eb9b905a15493e7b9 |