νƒœκ·Έ 보관물: code-golf

code-golf

이진 ν™•μž₯의 λΉ„μ–΄ μžˆμ§€ μ•Šμ€ λΉ„ ν•˜μœ„ μ„œλΈŒ μ‹œν€€μŠ€ 수 λ°˜ν™˜ N을 . 예 :λΆ€ν„° 4이닀 100진,

ν•˜μœ„ μ‹œν€€μŠ€λŠ” μž„μ˜μ˜ μ–‘μ˜ 문자λ₯Ό μ‚­μ œν•˜μ—¬ λ‹€λ₯Έ μ‹œν€€μŠ€μ—μ„œ 얻을 μˆ˜μžˆλŠ” μ‹œν€€μŠ€μž…λ‹ˆλ‹€. 의 λ³„κ°œμ˜ λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ‹œν€€μŠ€ 100이닀 0, 1, 00, 10, 100. 의 λ³„κ°œμ˜ λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ‹œν€€μŠ€κ°€ 1010μžˆλ‹€ 0, 1, 00, 01, 10, 11, 010, 100, 101, 110, 1010.

μ–‘μ˜ μ •μˆ˜λ₯Ό μ œκ³΅ν•˜λŠ” ν”„λ‘œκ·Έλž¨μ΄λ‚˜ κΈ°λŠ₯을 μ“°κΈ° N 의 λ°”μ΄λ„ˆλ¦¬ ν™•μž₯ λ³„κ°œμ˜ λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ„œλΈŒ μ‹œν€€μŠ€μ˜ 수λ₯Ό λ°˜ν™˜ N을 .

예 :λΆ€ν„° 4이닀 100진, μš°λ¦¬λŠ” κ·Έλ ‡κ²Œ λ‹€μ„― λ³„κ°œμ˜ λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ‹œν€€μŠ€ μœ„μ— μžˆλ‹€κ³  λ³΄μ•˜λ‹€ f(4) = 5. μ‹œμž‘μ—μ„œ N = 1 , μ‹œν€€μŠ€κ°€ μ‹œμž‘λœλ‹€ :

1, 3, 2, 5, 6, 5, 3, 7, 10, 11, 9, 8, 9, 7, 4, 9, 14, 17, 15, 16, 19, 17, 12

κ·ΈλŸ¬λ‚˜ ν”„λ‘œκ·Έλž¨μ€ μ΅œμ‹  λ¨Έμ‹ μ—μ„œ 1 초 미만의 n <2 50 인치 λ™μ•ˆ μž‘λ™ν•΄μ•Όν•©λ‹ˆλ‹€ . λͺ‡ 가지 큰 예 :

f(1099511627775) = 40
f(1099511627776) = 81
f(911188917558917) = 728765543
f(109260951837875) = 447464738
f(43765644099) = 5941674


λ‹΅λ³€

파이썬 3 , 95 λ°”μ΄νŠΈ 83 λ°”μ΄νŠΈ

[Mr.XCoder 덕뢄에 -12 λ°”μ΄νŠΈ :)]

def f(x):
 v=[2,1];c=1
 for i in bin(x)[3:]:k=int(i);c+=v[k];v[1-k]+=v[k]
 return c

온라인으둜 μ‚¬μš©ν•΄λ³΄μ‹­μ‹œμ˜€!

μ•Œκ³ λ¦¬μ¦˜μ— λŒ€ν•œ μ°Έκ³  사항. μ•Œκ³ λ¦¬μ¦˜μ€ 주어진 μœ„μΉ˜ (t)μ—μ„œ λΉ„νŠΈμ— μ˜ν•΄ 주어진 고유 ν•œ μ„œλΈŒ μ‹œν€€μŠ€μ˜ 증뢄을 κ³„μ‚°ν•œλ‹€. 첫 번째 λΉ„νŠΈμ˜ 증뢄은 항상 1μž…λ‹ˆλ‹€. 그런 λ‹€μŒ μ•Œκ³ λ¦¬μ¦˜μ€ λΉ„νŠΈ s (t)의 μ‹œν€€μŠ€λ₯Ό μ‹€ν–‰ν•˜κ³  증뢄 v [s (t)]λ₯Ό μΆ”κ°€ν•©λ‹ˆλ‹€. 각 λ‹¨κ³„μ—μ„œ s (t), v [1-s (t)]의 λ³΄μˆ˜μ— λŒ€ν•œ 증뢄은 v [1] + v [0]으둜 μ—…λ°μ΄νŠΈλ©λ‹ˆλ‹€. λ§ˆμ§€λ§‰ μˆ«μžλŠ” λͺ¨λ“  μ¦λΆ„μ˜ ν•©μž…λ‹ˆλ‹€.

O (log2 (n))μ—μ„œ μ‹€ν–‰ν•΄μ•Όν•©λ‹ˆλ‹€. μ—¬κΈ°μ„œ n은 μž…λ ₯ λ²ˆν˜Έμž…λ‹ˆλ‹€.


λ‹΅λ³€

μžλ°” 슀크립트 (ES6), 53 51 λ°”μ΄νŠΈ

f=(n,r=~(a=[]))=>n<1?~r:f(n/2,r*2-~~a[n&=1],a[n]=r)

ν…ŒμŠ€νŠΈ 사둀

f=(n,r=~(a=[]))=>n<1?~r:f(n/2,r*2-~~a[n&=1],a[n]=r)

console.log(f(1099511627775))   // 40
console.log(f(1099511627776))   // 81
console.log(f(911188917558917)) // 728765543
console.log(f(109260951837875)) // 447464738
console.log(f(43765644099))     // 5941674

ν˜•μ‹ν™” 및 의견

f = (                      // f is a recursive function taking:
  n,                       //   n = integer
  r = ~(                   //   r = last result, initially set to -1
    a = []                 //   and using a[] = last results for 0 and 1,
  )                        //   implicitly initialized to [0, 0]
) =>                       //
  n < 1 ?                  // if n is less than 1:
    ~r                     //   we're done: return -(r + 1)
  :                        // else:
    f(                     //   do a recursive call with:
      n / 2,               //     n / 2
      r * 2 - ~~a[n &= 1], //     updated result = r * 2 - last result for this binary digit
      a[n] = r             //     update last result for this binary digit
    )                      //   end of recursive call

λΉ„ μž¬κ·€ 버전, 63 λ°”μ΄νŠΈ

@ThePirateBay 덕뢄에 3 λ°”μ΄νŠΈ μ ˆμ•½

s=>[...s.toString(2)].map(l=c=>l[p=r,r=r*2-~~l[c],c]=p,r=1)|r-1

ν…ŒμŠ€νŠΈ 사둀

let f =

s=>[...s.toString(2)].map(l=c=>l[p=r,r=r*2-~~l[c],c]=p,r=1)|r-1

console.log(f(1099511627775))   // 40
console.log(f(1099511627776))   // 81
console.log(f(911188917558917)) // 728765543
console.log(f(109260951837875)) // 447464738
console.log(f(43765644099))     // 5941674

λ‹΅λ³€

파이썬 2 , 56 λ°”μ΄νŠΈ

f=lambda x,a=1,b=1:x and f(x/2,a+~x%2*b,x%2*a+b)or a+b-2

온라인으둜 μ‚¬μš©ν•΄λ³΄μ‹­μ‹œμ˜€!

NofP μ—μ„œ 방법을 μ‚¬μš© ν•©λ‹ˆλ‹€.

반볡적으둜 59 λ°”μ΄νŠΈ :

x=input()
v=[1,1]
while x:v[x%2]=sum(v);x/=2
print sum(v)-2

온라인으둜 μ‚¬μš©ν•΄λ³΄μ‹­μ‹œμ˜€!


λ‹΅λ³€

저리 , 10 λ°”μ΄νŠΈ

B3;BSαΉ›Β¦/’S

이것은 @NofP의 μ•Œκ³ λ¦¬μ¦˜ μ—μ„œ @xnor의 κ°œμ„  을 μ‚¬μš© ν•©λ‹ˆλ‹€ .

온라인으둜 μ‚¬μš©ν•΄λ³΄μ‹­μ‹œμ˜€!

λ°°κ²½

ν•˜μž (aλŠ” 1 , β€¦ν•˜λŠ” n은 ) ν•œμ •λœ 이진 μ‹œν€€μŠ€ 일. 각각의 음이 μ•„λ‹Œ μ •μˆ˜λ₯Ό λ“€μ–΄ K ≀ N μ •μ˜ O K 고유 μ‹œν€€μŠ€μ˜ 수 (a 1 , β€¦ν•˜λŠ” K ) 쀑 ν•˜λ‚˜λ₯Ό λΉ„μš°κ±°λ‚˜ 단뢀에 1 , Z의 K 이닀 고유 μ‹œν€€μŠ€μ˜ 개수 λΉ„μ–΄ μžˆκ±°λ‚˜ 0으둜 λλ‚©λ‹ˆλ‹€ .

λΆ„λͺ…νžˆ, O 0 Z = 0 = 1 , 빈 μ‹œν€€μŠ€μ˜ μ‹œν€€μŠ€ 만이 빈 μˆœμ„œλŒ€λ‘œ.

각 인덱슀 k 에 λŒ€ν•΄ (a 1 , …, a k ) 의 총 μ„œλΈŒ μ‹œν€€μŠ€ 수 λŠ” o k + z k -1μž…λ‹ˆλ‹€ ( 1을 λΉΌλ©΄ o k 및 z k κ°€ 빈 μ‹œν€€μŠ€λ₯Ό 계산 ν•œλ‹€λŠ” 사싀이 μ„€λͺ… λ©λ‹ˆλ‹€). λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ„œλΈŒ μ‹œν€€μŠ€ 의 총 μˆ˜λŠ” o k + z k -2 μž…λ‹ˆλ‹€. 이 κ³Όμ œλŠ” o n + z n -2 λ₯Ό κ³„μ‚°ν•˜λ„λ‘ μš”μ²­ν•©λ‹ˆλ‹€ .

λ§ˆλ‹€λŠ” K> 0 , μš°λ¦¬κ°€ ν•  μˆ˜μžˆλŠ” μ»΄ν“¨νŒ… O K 및 Z의 K μž¬κ·€. 두 가지 κ²½μš°κ°€ μžˆμŠ΅λ‹ˆλ‹€.

  • a k = 1

    z k = z k-1 μ΄λ―€λ‘œ (a 1 , …, k-1 ) 및 (a 1 , …, k-1 , 1) 은 0으둜 λλ‚˜λŠ” λ™μΌν•œ ν•˜μœ„ μ‹œν€€μŠ€λ₯Ό κ°–μŠ΅λ‹ˆλ‹€ .

    의 각각 O K – 1 의 λΉ„μ–΄ μžˆμ§€ μ•Šμ€ μ‹œν€€μŠ€ (a 1 , β€¦ν•˜λŠ” K ) 에 κ·Έ 단뢀 1 우리 λŒ€μ—΄μ„ 제거 ν•  μˆ˜μžˆλŠ” ν•œ 것은 ν•˜λ‚˜λ₯Ό νšλ“ν•˜κΈ° μœ„ν•΄ O K-1 + Z K-1 – 1 개의 μ„œλΈŒ μ‹œν€€μŠ€ (a 1 , …, k-1 ) . λ°˜λŒ€λ‘œ, 첨뢀 1, ν›„μžμ˜ 각각 O K-1 + Z K-1 – 1 개 쀑 ν•˜λ‚˜μ˜ μ„œμ—΄ κ²°κ³Ό O K – 1 개 μ „ μ„œμ—΄. λ”°λΌμ„œ o k -1 = oK-1 + Z K-1 – 1 κ³Ό O K = O K-1 + Z K-1 .

  • kλŠ” 0 =

    μ΄μ „μ˜ κ²½μš°μ™€ λ§ˆμ°¬κ°€μ§€λ‘œ μž¬κ·€ 곡식 o k = o k-1 및 z k = z k-1 + o k-1 을 μ–»μŠ΅λ‹ˆλ‹€ .

μž‘λ™ 원리

B3;BSαΉ›Β¦/’S  Main link. Argument: n (positive integer)

B           Binary; convert n to base 2.
 3;         Prepend a 3.
   B        Binary; convert all integers in the resulting array to base 2, mapping
            0 to [0], 1 to [1], and the prepended 3 to [1, 1].
       /    Reduce the resulting array by the quicklink to the left, which will be
            called with left argument [x, y] (integer pair) and right argument [j]
            (either [0] or [1]).
      Β¦     Sparse application.
    S           Compute the sum (x + y) and...
     αΉ›          for each index in the right argument (i.e., for j)...
            replace the element of [x, y] at that index with (x + y).
       ’    Decrement both integers in the resulting pair.
        S   Take the sum.

λ‹΅λ³€

05AB1E , 12 λ°”μ΄νŠΈ

0¸sbvDO>yǝ}O

온라인으둜 μ‚¬μš©ν•΄λ³΄μ‹­μ‹œμ˜€! μ„€λͺ… : ASλŠ” λ‹€λ₯Έ λ‹΅λ³€μœΌλ‘œ 지적 λ°”μ΄λ„ˆλ¦¬ λ¬Έμžμ—΄ μ‹œν€€μŠ€μ˜ 수λ₯Ό a..y01μ—μ„œ 끝이 λ°”μ΄λ„ˆλ¦¬ λ¬Έμžμ—΄μ˜ λ²ˆν˜Έμ™€ λ™μΌν•œ κ²ƒμœΌλ‘œ a..yA의 끝이 μˆ˜ν•˜λŠ” λ™μ•ˆ, 0μ§„μ„μœ„ν•œ μ„œλΈŒ μ‹œν€€μŠ€μ˜ 총 μˆ˜λŠ” λ¬Έμžμ—΄ a..y(각각 0접미사λ₯Ό μ–»μŒ )에 1을 λ”ν•œ λ¬Έμžμ—΄ 0. λ‹€λ₯Έ λ‹΅λ³€κ³Ό 달리 초기 μƒνƒœλ₯Ό κ΅¬μ„±ν•˜λŠ” λ°”μ΄νŠΈλ₯Ό μ €μž₯ν•˜λ―€λ‘œ 빈 ν•˜μœ„ μ‹œν€€μŠ€λ₯Ό ν¬ν•¨ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

0ΒΈs             Push [0] under the input
   b            Convert the input to binary
    v     }     Loop over the digits
     D          Duplicate the array
      O         Take the sum
       >        Increment
        yǝ      Replace the index corresponding to the binary digit
           O    Take the sum of the final array

λ‹΅λ³€

μžλ°” 8, 97 λ°”μ΄νŠΈ

n->f(n,1,1)long f(long n,long a,long b){return n>0?f(n/2,a+Math.floorMod(~n,2)*b,n%2*a+b):a+b-2;}

포트 @xnor 의 파이썬 2 λŒ€λ‹΅ μ°¨λ‘€μ˜ κ°œμ„ , @NofP 의 파이썬 3 λŒ€λ‹΅ β€˜ .

μ—¬κΈ°μ—μ„œ μ‹œλ„ν•˜μ‹­μ‹œμ˜€.


μ–΄μ©Œλ©΄ νƒœκ·Έκ°€ μžˆλŠ” 것이 쒋을 κ²ƒμž…λ‹ˆλ‹€. μ²˜μŒμ— λͺ¨λ“  ν•˜μœ„ μ‹œν€€μŠ€λ₯Ό 무차별 μ²˜λ¦¬ν•˜κΈ° μœ„ν•΄ λ‹€μŒμ„ μˆ˜ν–‰ν–ˆκΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

import java.util.*;n->p(n.toString(n,2)).size()-1;Set p(String s){Set r=new HashSet();r.add("");if(s.isEmpty())return r;Set q=p(s.substring(1));r.addAll(q);for(Object o:q)r.add(""+s.charAt(0)+o);return r;}

μ—¬κΈ°μ—μ„œ μ‹œλ„ν•˜μ‹­μ‹œμ˜€.

μ–΄λŠ 것도 νš¨κ³Όκ°€ μžˆμ—ˆμ§€λ§Œ λ§ˆμ§€λ§‰ μ„Έ 가지 ν…ŒμŠ€νŠΈ μ‚¬λ‘€μ—λŠ” λ„ˆλ¬΄ 였래 κ±Έλ ΈμŠ΅λ‹ˆλ‹€. 더 κΈΈλ‹€λŠ” 것은 말할 것도 μ—†μŠ΅λ‹ˆλ‹€ ( 208 204 λ°”μ΄νŠΈ ).


λ‹΅λ³€

6502 기계 μ½”λ“œ (C64), 321 λ°”μ΄νŠΈ

00 C0 20 FD AE A2 00 9D 4F C1 E8 20 73 00 90 F7 9D 4F C1 A0 FF C8 B9 4F C1 D0
FA A2 15 CA 88 30 0A B9 4F C1 29 0F 9D 4F C1 10 F2 A9 00 9D 4F C1 CA 10 F8 A9
00 A0 07 99 64 C1 88 10 FA A0 40 A2 6C 18 BD E4 C0 90 02 09 10 4A 9D E4 C0 E8
10 F2 A2 07 7E 64 C1 CA 10 FA 88 F0 13 A2 13 BD 50 C1 C9 08 30 05 E9 03 9D 50
C1 CA 10 F1 30 D1 A2 0F A9 00 9D 3F C1 CA D0 FA A9 01 8D 3F C1 8D 47 C1 A2 08
CA BD 64 C1 F0 FA A0 09 1E 64 C1 88 90 FA B0 0A CA 30 28 A0 08 1E 64 C1 90 04
A9 47 B0 02 A9 4F 8D AF C0 86 FE A2 F8 18 BD 47 C0 7D 4F C0 9D 47 C0 E8 D0 F4
A6 FE 88 D0 DC F0 D5 A2 F8 BD 47 C0 7D 4F C0 9D 6C C0 E8 D0 F4 AD 64 C1 E9 01
8D 64 C1 A2 F9 BD 6C C0 E9 00 9D 6C C0 E8 D0 F5 A0 15 A9 00 99 4E C1 88 D0 FA
A0 40 A2 13 BD 50 C1 C9 05 30 05 69 02 9D 50 C1 CA 10 F1 0E 64 C1 A2 F9 3E 6C
C0 E8 D0 FA A2 13 BD 50 C1 2A C9 10 29 0F 9D 50 C1 CA 10 F2 88 D0 D1 E0 14 F0
06 E8 BD 4F C1 F0 F6 09 30 99 4F C1 C8 E8 E0 15 F0 05 BD 4F C1 90 F0 A9 00 99
4F C1 A9 4F A0 C1 4C 1E AB

온라인 데λͺ¨

였λ₯˜ 검사 κΈ°λŠ₯μ΄μžˆλŠ” 온라인 데λͺ¨ (346 λ°”μ΄νŠΈ)

μš©λ²•: sys49152,[n] 예 sys49152,911188917558917.

μ‹œκ°„ μ œν•œ 및 ν…ŒμŠ€νŠΈ μ‚¬λ‘€μ—λŠ” 64 λΉ„νŠΈ 숫자둜 κ³„μ‚°ν•˜λŠ” μ†”λ£¨μ…˜μ΄ ν•„μš”ν•˜λ―€λ‘œ C64κ°€ β€œ ν˜„λŒ€ 기계 β€œ μž…λ‹ˆλ‹€ .

λ¬Όλ‘ ,이 μ½”λ“œμ˜ κ½€ ν•„μš” OSκ°€ μ œκ³΅ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€ 아무것도 16 λΉ„νŠΈλ³΄λ‹€ 넓은 μ •μˆ˜μ— λŒ€ν•΄. μ ˆλ¦„λ°œμ΄ λΆ€λΆ„ : 그것은 NofP μ•Œκ³ λ¦¬μ¦˜ resp 의 또 λ‹€λ₯Έ κ΅¬ν˜„ (μ•½κ°„ μˆ˜μ •)μž…λ‹ˆλ‹€ .xnor의 κ°œμ„  된 λ³€ν˜• . 아이디어 μ£Όμ…”μ„œ κ°μ‚¬ν•©λ‹ˆλ‹€;)


μ„€λͺ…

λ‹€μŒμ€ μ•Œκ³ λ¦¬μ¦˜μ„ μˆ˜ν–‰ν•˜λŠ” κ΄€λ ¨ λΆ€ν’ˆμ— λŒ€ν•œ 주석 처리 된 λΆ„ν•΄ λͺ©λ‘μž…λ‹ˆλ‹€.

.C:c06c  A2 0F       LDX #$0F           ; 15 bytes to clear
.C:c06e  A9 00       LDA #$00
.C:c070   .clearloop:
.C:c070  9D 3F C1    STA .num_a,X
.C:c073  CA          DEX
.C:c074  D0 FA       BNE .clearloop
.C:c076  A9 01       LDA #$01           ; initialize num_a and num_b
.C:c078  8D 3F C1    STA .num_a         ; to 1
.C:c07b  8D 47 C1    STA .num_b
.C:c07e  A2 08       LDX #$08           ; 8 bytes of input to check,
.C:c080   .findmsb:                     ; start at most significant
.C:c080  CA          DEX
.C:c081  BD 64 C1    LDA .nc_num,X
.C:c084  F0 FA       BEQ .findmsb       ; repeat until non-0 byte found
.C:c086  A0 09       LDY #$09           ; 8 bits to check (+1 for pre dec)
.C:c088   .findbit:
.C:c088  1E 64 C1    ASL .nc_num,X      ; shift left, highest bit to carry
.C:c08b  88          DEY
.C:c08c  90 FA       BCC .findbit       ; bit was zero -> repeat
.C:c08e  B0 0A       BCS .loopentry     ; jump into calculation loop
.C:c090   .mainloop:
.C:c090  CA          DEX                ; next byte
.C:c091  30 28       BMI .done          ; index -1? -> done calculating
.C:c093  A0 08       LDY #$08           ; 8 bits to check
.C:c095   .bitloop:
.C:c095  1E 64 C1    ASL .nc_num,X      ; shift left, highest bit to carry
.C:c098  90 04       BCC .tgt_b         ; if 0, store addition result in num_b
.C:c09a   .loopentry:
.C:c09a  A9 47       LDA #$47
.C:c09c  B0 02       BCS .tgt_a         ; ... else store in num_a ...
.C:c09e   .tgt_b:
.C:c09e  A9 4F       LDA #$4F
.C:c0a0   .tgt_a:
.C:c0a0  8D AF C0    STA $C0AF          ; ... using self-modification.
.C:c0a3  86 FE       STX $FE            ; save byte index
.C:c0a5  A2 F8       LDX #$F8           ; index for adding
.C:c0a7  18          CLC
.C:c0a8   .addloop:
.C:c0a8  BD 47 C0    LDA $C047,X        ; load byte from num_a
.C:c0ab  7D 4F C0    ADC $C04F,X        ; add byte from num_b
.C:c0ae  9D 47 C0    STA $C047,X        ; store to num_a or num_b
.C:c0b1  E8          INX                ; next index
.C:c0b2  D0 F4       BNE .addloop       ; done if index overflown
.C:c0b4  A6 FE       LDX $FE            ; restore byte index
.C:c0b6  88          DEY                ; decrement bit index
.C:c0b7  D0 DC       BNE .bitloop       ; bits left in current byte -> repeat
.C:c0b9  F0 D5       BEQ .mainloop      ; else repeat main loop
.C:c0bb   .done:
.C:c0bb  A2 F8       LDX #$F8           ; index for adding
.C:c0bd   .addloop2:
.C:c0bd  BD 47 C0    LDA $C047,X        ; load byte from num_a
.C:c0c0  7D 4F C0    ADC $C04F,X        ; add byte from num_b
.C:c0c3  9D 6C C0    STA $C06C,X        ; store to nc_num (result)
.C:c0c6  E8          INX                ; next index
.C:c0c7  D0 F4       BNE .addloop2      ; done if index overflown
.C:c0c9  AD 64 C1    LDA .nc_num        ; load least significant result byte
.C:c0cc  E9 01       SBC #$01           ; subtract 2 (1 + negated carry)
.C:c0ce  8D 64 C1    STA .nc_num        ; store least significant result byte
.C:c0d1  A2 F9       LDX #$F9           ; index for subtract
.C:c0d3   .subloop:
.C:c0d3  BD 6C C0    LDA $C06C,X        ; subtract 0 from all other bytes
.C:c0d6  E9 00       SBC #$00           ; for handling carry if necessary
.C:c0d8  9D 6C C0    STA $C06C,X
.C:c0db  E8          INX
.C:c0dc  D0 F5       BNE .subloop

λ‚˜λ¨Έμ§€λŠ” μž… / 좜λ ₯이며 더블 더블 μ•Œκ³ λ¦¬μ¦˜μ„ μ‚¬μš©ν•˜μ—¬ λ¬Έμžμ—΄κ³Ό 64 λΉ„νŠΈ λΆ€ν˜Έμ—†λŠ” μ •μˆ˜ (little-endian) μ‚¬μ΄μ—μ„œ λ³€ν™˜λ©λ‹ˆλ‹€. 관심이 μžˆμœΌμ‹œλ‹€λ©΄, 여기에 였λ₯˜ 검사 κΈ°λŠ₯μ΄μžˆλŠ” λ²„μ „μ˜ 전체 μ–΄μ…ˆλΈ”λ¦¬ μ†ŒμŠ€κ°€ μžˆμŠ΅λ‹ˆλ‹€. . β€œgolfed”버전은 β€œgolfβ€λΈŒλžœμΉ˜μ— μžˆμŠ΅λ‹ˆλ‹€.