Problem Description
Loading...
Problem Analysis
For this problem, after thinking it over, I didn’t create an array
I used three variables to record the number with the largest absolute value
and made the comparison that way
The side story is that I wrote this problem yesterday but kept failing to debug it
When I looked at it today, I quickly found that the current variable num had been named m
which made the loop always empty
From this you can see……
Sometimes after using your brain a lot, rest is still necessary
(Though today seems even more slacking off than yesterday)
Or maybe it’s like~
When you can’t remember something for a moment, put it aside first
and then maybe at some point an idea will suddenly come to you~
cpp
| |
Problem link:HDU [2022] Audition for the Leading Actress