Skip to content

Instantly share code, notes, and snippets.

Avatar

Sang-hun Kim kinssang

View GitHub Profile
@kinssang
kinssang / Source.cpp
Last active Sep 20, 2017
BOJ 13334 철로
View Source.cpp
#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 Sep 26, 2017
BOJ 13505 두 수 XOR
View Source.cpp
#include <stdio.h>
//#include <crtdbg.h>
int power_2[30];
struct Trie
{
Trie *child[2];
Trie()
@kinssang
kinssang / Source.cpp
Created Sep 26, 2017
10473 맞왜틀
View Source.cpp
#include <stdio.h>
#include <queue>
#include <math.h>
#include <algorithm>
struct point
{
double x;
double y;
};