Skip to content

Instantly share code, notes, and snippets.

View yinyanghu's full-sized avatar
🎯
Focusing

Jian Li yinyanghu

🎯
Focusing
View GitHub Profile
@yinyanghu
yinyanghu / CentaurCompanyDiv2.cpp
Last active December 13, 2015 18:58
Topcoder SRM570 Div2
#include <vector>
#include <cstring>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
@yinyanghu
yinyanghu / ptr_list.cpp
Created February 14, 2013 07:27
Linus's Linked List
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
using namespace std;
typedef struct node
{
@yinyanghu
yinyanghu / MegaFactorialDiv2.cpp
Last active December 12, 2015 10:49
Topcoder SRM569 Div2
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <cstring>
@yinyanghu
yinyanghu / BallsSeparating.cpp
Last active December 12, 2015 10:49
Topcoder SRM568 Div2
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
@yinyanghu
yinyanghu / lightoff.cpp
Last active December 12, 2015 10:48
The Solver for Gnome Game, Lights Off
#include <iostream>
#include <cstring>
#include <algorithm>
#define N 5
#define NN 25
#define limit 30
#define maxqueue 10000000
using namespace std;