Skip to content

Instantly share code, notes, and snippets.

View ipkn's full-sized avatar

Jaeseung Ha ipkn

  • Furiosa A.I.
  • Seoul, Republic of Korea
View GitHub Profile
@ipkn
ipkn / y.cc
Last active February 17, 2017 16:22
y combinator
// main() from https://github.com/simnalamburt/snippets/blob/master/cpp/y-combinator.cpp which is licensed under the Apache License 2.0.
// Apache-2.0/MIT.
// --------
#include <stdint.h>
#include <iostream>
template <typename Func>
auto y(Func f) {
auto g = [f](auto r){
@ipkn
ipkn / a.yak
Created April 12, 2015 02:17
Codejam 2015 Qual 라운드 small을 약속으로 구현해 보았습니다.
테스트개수: (단어 읽기) 숫자로
반복 1~테스트개수 의 번호 마다
답: 0
최대부끄럼지수:(단어 읽기) 숫자로
부끄럼표: 단어 읽기
남은사람: 0
반복 부끄럼표 의 부끄럼지수_글자 마다
부끄럼지수: 부끄럼지수_글자 숫자로