Skip to content

Instantly share code, notes, and snippets.

@honux77
honux77 / prime.html
Created June 26, 2019 00:25
Inflearn 소수찾기 예제
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
</head>
<body>
<script>
var numbers = {};
@honux77
honux77 / linked-list.js
Created June 24, 2019 07:23
JS doubly linked list
'use strict'
class Node {
constructor(value) {
this.value = value;
this.next = null;
this.prev = null;
}
}
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
using namespace std;
int dr[] = { -1, 0, 1, 0 };
int dc[] = { 0, 1, 0, -1 };
@honux77
honux77 / 1520-downhill.cpp
Last active May 8, 2019 02:22
BOJ 1520 내리막길
#include <iostream>
#include <algorithm>
#include <vector>
#include <tuple>
using namespace std;
int d[501][501];
int c[501][501];
using ituple = tuple<int, int, int>;
@honux77
honux77 / 2504-wrong.cpp
Last active April 18, 2019 15:17
BOJ 2504 - wring
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stack>
#include <iostream>
#include <string>
using namespace std;
const int SL = -1;
const int LL = -2;
@honux77
honux77 / goldbach.cpp
Created April 15, 2019 07:00
BOJ 9020 골드바흐
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
const int pmax = 10000;
bool p[pmax + 1];
vector<int> pnums;
@honux77
honux77 / baseball.c
Last active April 15, 2019 01:17
숫자야구 C로 구현하기
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#define TURN 10
typedef struct {
int ans[3];
int strike;
int ball;
@honux77
honux77 / eungook.py
Created April 2, 2019 02:38
eungook
from math import exp
def func(x):
return exp(x) - 4 * x * x + x
a = 1.0
n = 10
for _ in range(n):
a = func(a)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@honux77
honux77 / myungchan.ipynb
Last active January 15, 2019 11:17
10% + 실패시 1 % 추가 발동확률 구하기
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.