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 <iostream> | |
#include <fstream> | |
//Gradient 함수 | |
void Gradient(int size_x, int size_y) | |
{ | |
//파일 출력 | |
std::ofstream out("Gradient.ppm"); | |
//PPM 헤더 설정 |
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
int MaxStepHGT(int n, int k) | |
{ | |
int score = 0; | |
bool badstep = false; | |
for (int i = 0; i <= n; i++) | |
{ | |
score += i; | |
if (score == k) | |
{ | |
badstep = true; |
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 <iostream> | |
using namespace std; | |
long findHGT(long n, long m) | |
{ | |
long count = 1; | |
bool doOnce=false; | |
for(long i=1;i<=n/2;++i) | |
{ | |
if (n % i == 0) |
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 MineCraftCharacter : MonoBehaviour | |
{ | |
enum UV_Type { HEAD, BODY, LEGARM }; | |
static float p4 = 0.0625f; | |
static float p8 = 0.125f; | |
static float p12 = 0.1875f; |
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 SkinnedQuad : MonoBehaviour { | |
public Transform[] bones; | |
SkinnedMeshRenderer smr; | |
static public List<Vector3> vertices = new List<Vector3>(); |
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 | |
{ | |
enum UV_Type { HEAD, BODY, LEGARM }; | |
static float p4 = 0.0625f; | |
static float p8 = 0.125f; | |
static float p12 = 0.1875f; | |
static float p16 = 0.25f; |