Problem Description
Loading...
Problem Analysis
The first time I encountered such a high-end foreign OJ
I immediately felt it was really badass
For this problem
By observation, you can find that the row and column of a number have some relationship with the square root of the number
So after careful analysis
You can separate odd and even cases and some other factors such as the magnitude of the number
to determine the row and column where the number is located
The AC code is as follows
cpp
| |
Problem link: LightOJ 1008 Fibsieve`s Fantabulous Birthday
Excellent explanation: Finding the pattern LightOJ 1008