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

Find correct arithmetic expressions
Cost: 8| Solved: 5
Memory limit: 256 Mb
Time limit: 1000 ms
Input file: stdin
Output file: stdout
Task:
You are given a set of strings separated with line feed characters.
We'll be considering a string a correct arithmetic expression if it consists of positive integers separated with math symbols +,-,**,? without whitespace character in between. A single
digit is also considered to be a correct arithmetic expression.
Find all the longest substrings containing correct arithmetic expressions.
Input:
A set of strings separated with line feed characters.
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++**
 Find correct arithmetic expressions Cost: 8| Solved: 5 Memory limit: 256

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!