반응형 백준 19741번1 JAVA 백준 19741번 Patterns 문제 Inspired by the Ulam spiral, which unravels strange patterns of prime numbers' distribution, Petya decided to come up with his own analog. Petya writes down integers from $1$ to $n^2$ into square table of size $n\times n$ starting from the upper left corner. Numbers from $1$ to $n$ go into the first row, numbers from $n + 1$ to $2n$ --- into the second row, and so on. Then he colors cells whi.. 2022. 6. 24. 이전 1 다음 반응형