Skip to content

Instantly share code, notes, and snippets.

View kinssang's full-sized avatar

Sang-hun Kim kinssang

View GitHub Profile
@kinssang
kinssang / Source.cpp
Last active September 20, 2017 04:59
BOJ 13334 철로
#include <stdio.h>
#include <vector>
#include <algorithm>
int main()
{
int n, d, input[100000][2], cursor = -100000001, answer = 0;
std::vector<int> st, ed;
scanf("%d", &n);
for (int i = 0; i < n; i++) scanf("%d %d", &input[i][0], &input[i][1]);
@kinssang
kinssang / Source.cpp
Created September 26, 2017 01:32
BOJ 13505 두 수 XOR
#include <stdio.h>
//#include <crtdbg.h>
int power_2[30];
struct Trie
{
Trie *child[2];
Trie()
@kinssang
kinssang / Source.cpp
Created September 26, 2017 07:19
10473 맞왜틀
#include <stdio.h>
#include <queue>
#include <math.h>
#include <algorithm>
struct point
{
double x;
double y;
};