Editorial:
Problem setter: Ishrak Tawsif Nirob

Alternate Solution writer: Shaiful Islam Ramim


This problem can be solved by a N*N loop. At first, we need to find the actual size of the straight line consisting of ‘*’. If there are multiple straight lines consisting of ‘*’ image is corrupted. Otherwise, count the number of ‘*’ in a straight line and print the square of that number. The image might not contain any ‘*’ which will also be considered as corrupted image.

Statistics

20% Solution Ratio
Nayma16Earliest, 2M ago
Jaman_khanFastest, 0.0s
Nayma16Lightest, 5.2 MB
Nayma16Shortest, 1947B
Toph uses cookies. By continuing you agree to our Cookie Policy.