11
제곱 차이를 최대화
의 정수 값의 순열 고려 1에를 N. 예를 들면 다음과 N = 4같습니다. [1, 3, 4, 2] 우리는이 목록이 순환 그러한이라고 생각합니다 1및 2인접으로 처리됩니다. 이러한 목록에 대해 계산할 수있는 수량은 인접 값의 총 제곱 차이입니다. (1-3)² + (3-4)² + (4-2)² + (2-1)² = 10 당신의 임무는 양의 정수가 주어지면이 …
19
code-golf
array-manipulation
permutations
restricted-complexity
code-golf
geometry
grid
code-golf
string
sorting
code-golf
simulation
code-golf
string
code-golf
arithmetic
code-golf
sorting
code-golf
string
code-golf
sorting
code-golf
interpreter
code-golf
number
kolmogorov-complexity
natural-language
conversion
code-golf
random
internet
code-golf
board-game
code-golf
number
sequence
code-golf
math
number
code-challenge
image-processing
classification
test-battery
code-golf
ascii-art
code-golf
tips
code-golf
arithmetic
code-golf
tips
code-golf
tips
javascript
code-golf
array-manipulation
code-golf
ascii-art
code-golf
string
binary
code-golf
arithmetic
linear-algebra
matrix
code-golf
sequence
code-golf
math
number
arithmetic
code-golf
primes
code-golf
math
code-golf
array-manipulation
counting
code-golf
arithmetic
code-golf
quine
code-generation
polyglot
code-golf
math
kolmogorov-complexity
trigonometry
code-golf
string
encryption