This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
struct FMeshData | |
{ | |
public List<Vector3> vertices; | |
public List<int> triangles; | |
public List<Vector2> uvs; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class TriangleCharacter : MonoBehaviour | |
{ | |
struct FMeshData | |
{ | |
public List<Vector3> vertices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class TriangleCharacter : MonoBehaviour | |
{ | |
struct FMeshData | |
{ | |
public List<Vector3> vertices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MinecraftCharacter : MonoBehaviour | |
{ | |
class Quad | |
{ | |
public Vector3[] vertices; | |
public Vector2[] uvs; | |
public int[] triangles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
movie 'G:\isaac.swf' { | |
// flash 8, total frames: 41, frame rate: 30 fps, 800x600 px, compressed | |
movieClip 338 { | |
} | |
movieClip 339 b501 { | |
} | |
movieClip 342 { |