7
コードゴルフ:フェイリーシーケンス(I)
チャレンジ このタスクでは、整数N(10 ^ 5未満)が与えられ、次数NのFareyシーケンスが出力されます。 入力Nは1行で指定され、入力はEOFで終了します。 入力 4 3 1 2 出力 F4 = {0/1, 1/4, 1/3, 1/2, 2/3, 3/4, 1/1} F3 = {0/1, 1/3, 1/2, 2/3, 1/1} F1 = {0/1, 1/1} F2 = {0/1, 1/2, 1/1} 制約 入力数は10 ^ 6の値を超えません 任意の言語を使用できます 最短のソリューションが勝ちます!
10
code-golf
math
code-golf
math
code-golf
number
number-theory
code-golf
math
arithmetic
repeated-transformation
code-golf
geometry
popularity-contest
code-golf
code-golf
tips
haskell
math
fastest-algorithm
code-golf
combinatorics
code-golf
math
polynomials
rational-numbers
code-golf
code-golf
popularity-contest
javascript
code-golf
kolmogorov-complexity
code-golf
code-golf
math
combinatorics
permutations
code-challenge
restricted-source
random
array-manipulation
code-challenge
generation
code-golf
code-golf
ascii-art
arithmetic
division
code-challenge
number
code-golf
math
number
binary
code-golf
ascii-art
code-golf
interpreter
stack
code-golf
internet
networking
code-golf
math
code-golf
ascii-art
code-golf
math
sequence
code-golf
hello-world
restricted-source
code-golf
ascii-art
code-golf
geometry
code-golf
kolmogorov-complexity
pi
code-golf
math
combinatorics
permutations
code-golf
math
code-challenge
ascii-art
code-golf
string
code-golf
quine
code-golf
math
floating-point
golfscript
code-golf
string
code-golf
sliding-puzzle
code-challenge
arithmetic
code-golf
math
code-golf
geometry
optimized-output