Skip to content

Instantly share code, notes, and snippets.

View LJH960101's full-sized avatar

이장형 LJH960101

View GitHub Profile
#include<limits.h>
#include<Windows.h>
int bestTrio(int friend_nodes, int friends_from[], int friends_to[])
{
bool** bIsConnected = new bool* [friend_nodes];
int score[500];
int i, j, k, a, b;
for (i = 0; i < friend_nodes; ++i) {
@LJH960101
LJH960101 / maxStep.h
Last active May 29, 2019 09:13
maxStep
inline int getSum(int n) {
return (1 + n) * n/2;
}
int maxStep(int n, int obstacle) {
bool onObstacle = false;
for (int i = 1; i <= n; ++i) {
if (getSum(i) == obstacle) {
onObstacle = true;
break;
}
#include "pch.h"
#include <iostream>
using namespace std;
long FindJangHyeong(long n, long m) {
long count = 0, lastNumb;
for (long i = 1; i <= sqrt(n); ++i) {
if (n % i == 0) {
lastNumb = i;
++count;
@LJH960101
LJH960101 / Node.cs
Last active April 11, 2019 03:30
엔진심화 과제3
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Node{
public bool walkable;
public Vector3 worldPosition;
public int gridX;
public int gridY;
@LJH960101
LJH960101 / MinecraftCharacter.cs
Created March 20, 2019 09:56
엔진심화 2차 과제2
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
struct FMeshData
{
public List<Vector3> vertices;
public List<int> triangles;
public List<Vector2> uvs;
}
@LJH960101
LJH960101 / TriangleCharacter.cs
Last active March 20, 2019 08:37
엔진심화 2차 과제
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class TriangleCharacter : MonoBehaviour
{
struct FMeshData
{
public List<Vector3> vertices;
@LJH960101
LJH960101 / TriangleCharacter.cs
Created March 20, 2019 08:08
엔진심화 2차 과제
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class TriangleCharacter : MonoBehaviour
{
struct FMeshData
{
public List<Vector3> vertices;
@LJH960101
LJH960101 / MinecraftCharacter.cs
Last active March 13, 2019 11:13
Engine Programming first homework
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MinecraftCharacter : MonoBehaviour
{
class Quad
{
public Vector3[] vertices;
public Vector2[] uvs;
public int[] triangles;
@LJH960101
LJH960101 / Binding of Isaac v1.5 - Source Code
Last active August 29, 2015 14:27 — forked from elucidater/Binding of Isaac v1.5 - Source Code
Binding of Isaac v1.5 - Source Code
movie 'G:\isaac.swf' {
// flash 8, total frames: 41, frame rate: 30 fps, 800x600 px, compressed
movieClip 338 {
}
movieClip 339 b501 {
}
movieClip 342 {