Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find correct dates Cost: 1 6 | Solved: 8 Memory limit: 2 5 6 Mb Time limit: 1 0 0 0 ms Input file: stdin

Find correct dates
Cost: 16| Solved: 8
Memory limit: 256 Mb
Time limit: 1000 ms
Input file: stdin
Output file: stdout
** Use only C++**
Task:
You are given a set of strings separated with line feed characters.
You need to find all the substrings that represent correct date formats. The correct date formats are: DD.MM.YY, DD.MM.YYYY, MM.DD.YY, MM.DD.YYYY, where DD/MM/YY are
day/month/two-digit format year respectively, YYYY is four-digit format year.
Surely, you know that the number of days can not exceed 29 in February and 31 in all other months.
Input:
A set of strings separated with line feed characters.
Output:
Output all the longest correct substrings in the order in which they appear in the text, separating each with a line feed character.
** Use only C++**
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions

Question

1. How does Kiwi Experience maintain a continual customer focus?

Answered: 1 week ago