Problem Description
Problem Analysis
After the lessons from the previous two problems……
This time I carefully checked the accepted submissions
The code below still gets WA……
| |
Looks like I didn’t get what “single-instance test” in the statement means
Let me just record it for now
Still don’t get it
————————————————————
Okay……
A senior reminded me…… it’s a brain teaser……
AC code:
| |
For example, three pancakes
Pancake 1 2 3
1 front 2 front
2 back 3 front
3 back 1 back
Three minutes is enough……
So except for the first one, which definitely takes 2 minutes
For all the others, just output the number itself
I think I got fooled by this

WA hint……
Thinking about it, this isn’t the first time I’ve been burned by a WA hint……
Guess I can’t trust these WA hints too much from now on……
Problem link: [ZZULI][1765]Lay a pancake!!!