Skip to content

Instantly share code, notes, and snippets.

@elderica
Created February 6, 2022 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elderica/81fcbf8dd6172c81d919c0d37ab23a64 to your computer and use it in GitHub Desktop.
Save elderica/81fcbf8dd6172c81d919c0d37ab23a64 to your computer and use it in GitHub Desktop.
#lang racket
;; ここにencの内容を貼りつける。
(define enc "灩捯䍔䙻ㄶ形楴獟楮獴㌴摟潦弸彥ㄴㅡて㝽")
(list->string
(flatten
(map (lambda (x)
(list (integer->char (arithmetic-shift x -8))
(integer->char (bitwise-and x #xff))))
(map char->integer (string->list enc)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment