Skip to content

Instantly share code, notes, and snippets.

View LusainKim's full-sized avatar

Lusain_Kim LusainKim

View GitHub Profile
#include<iostream>
using namespace std;
/*
input한 년도의
13일의 금요일이 포함된 월을 찾아라!
조건 : 가장 짧은 코드
1900년 1월 1일 : 월
*/
int main(){
int year(0), first_day(0), now_month(0);
@LusainKim
LusainKim / STL10min.cpp
Last active August 29, 2015 14:22
Study_STL
#include <iostream>
#include <string>
#include <vector>
using namespace std;
class Monster{
private:
string m_strName;
int m_iHP;
public:
@LusainKim
LusainKim / maze.cpp
Last active August 29, 2015 14:23
LusMaze
#include <iostream>
#include <algorithm>
#include <iterator>
#include <Windows.h>
#include <vector>
using namespace std;
#define MazeSize 16
@LusainKim
LusainKim / quiz.cpp
Last active August 29, 2015 14:25
quiz_0726
#include <iostream>
using namespace std;
int CalcAreaNum(bool **arrStage, int M, int N, int* l_m = nullptr, int* l_n = nullptr)
{
int AreaNum = 0;
bool **_arrStage = new bool*[M];
// malloc
@LusainKim
LusainKim / LusDef.cpp
Last active August 29, 2015 14:28
LusDef
#include <Windows.h>
#include "LusDef.h"
////////////////////////////////////////////////
//
void DrawLineBox(HDC mainDC, RECT rc,
COLORREF main_RGB, COLORREF Line_RGB, int LineLen, bool Type)
{
@LusainKim
LusainKim / main.cpp
Created September 14, 2015 17:13
Dijkstra
#include <iostream>
#include <set>
#include <map>
#include <algorithm>
#include <vector>
#define JudgeInfinity (INT_MAX >> 1)
using namespace std;
@LusainKim
LusainKim / FileCopy.cpp
Last active September 25, 2015 04:09
FileCopy
#include <windows.h>
#include <conio.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
@LusainKim
LusainKim / DebugOutputlog.cpp
Created November 7, 2015 12:56
DebugSample
#include <windows.h>
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
#define USE_DEBUG_OUTPUT_TEXT
#if defined(USE_DEBUG_OUTPUT_TEXT)
ofstream fs;
@LusainKim
LusainKim / winmain.cpp
Last active April 17, 2020 22:21
simple win32api startup code
// 유니코드 기반입니다.
#include <Windows.h>
#include <tchar.h>
// LoadString : 타이틀 이름과 윈도우 클래스 이름 길이.
#define MAX_LOADSTRING 100
#define CLIENT_WIDTH 1200 // 클라이언트 너비
#define CLIENT_HEIGHT 720 // 클라이언트 높이
@LusainKim
LusainKim / atomic_test.cpp
Created January 5, 2016 22:26
atomic test
#include <windows.h>
#include <iostream>
#include <thread>
#include <memory>
#include <map>
#include <atomic>
using namespace std;
atomic_bool g_booleanVariable = false;