Skip to content

Instantly share code, notes, and snippets.

View entryzo's full-sized avatar
πŸ’­
I may be slow to respond.

entryzo

πŸ’­
I may be slow to respond.
View GitHub Profile
import numpy as np
import pandas as pd
# ν†΅λ‘œ(가변폭) 마슀크 생성
def build_mask(L_m=45.0, cell_size=0.333, w_min=3.2, w_max=4.0):
nx = int(round(L_m / cell_size))
ny_max = int(round(4.2 / cell_size)) # μ΅œλŒ€ 폭 4.0m + μ—¬μœ 
y_center = ny_max // 2
x = np.arange(nx)
# 쀑앙 병λͺ©(κ°€μš°μ‹œμ•ˆ) 반영 폭 곑선
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
import matplotlib
matplotlib.rcParams["font.family"] = "Malgun Gothic" # μœˆλ„μš° κΈ°λ³Έ ν•œκΈ€ 폰트
matplotlib.rcParams["axes.unicode_minus"] = False # 음수 λΆ€ν˜Έ(βˆ’) 깨짐 λ°©μ§€
################################################################################
# 1. κΈ°λ³Έ μ„€μ • ────────────────────────────────────────────────────────────────
from copy import deepcopy
import time
t0 = time.perf_counter()
X = range(1, 8)
eq_x = (1, 2, 6)
dom = {i: set(X) for i in X}
inv = {v: set(X) for v in X}
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import pandas as pd
class SoccerBallTrajectory:
"""좕ꡬ곡 ꢀ적 뢄석 클래슀"""
def __init__(self):
# 물리 μƒμˆ˜
#include <stdio.h>
#include <limits.h>
#define MAX 501
int dp[MAX][MAX];
int matrix[MAX][2];
int min(int a, int b) {
return a < b ? a : b;
#include <stdio.h>
#include <math.h>
#define MAX_OBSTACLES 100
#define THRESHOLD 5.0
#define GRID_STEP 2.0
typedef struct {
double x, y;
} Point;
#include <stdio.h>
#include <stdlib.h>
#define MAX 2000002
#define MAX_ARCS MAX
#define INITIAL_CAPACITY 16
typedef long long ll;
typedef struct {