-
The output includes t lines, each corresponding to the result of the example. If there are six stars, output "Yes", otherwise output "No" (each row or column has six consecutive stars on each diagonal)
-
It seems that we should first cache the results of each sample according to the number of t's entered, then perform the judgment of all examples and output one result per line again.
Then why are you in scanf ("%d% d \ n ",&; n & amp; m); Why do you want to add "\n" after format control?