Skip to content

Instantly share code, notes, and snippets.

View lychees's full-sized avatar
🌴
People, Fund, Strategy ...

minakokojima lychees

🌴
People, Fund, Strategy ...
View GitHub Profile
@lychees
lychees / gist:5818167
Created June 19, 2013 21:19
。。。非常奇怪的情况。。。把 graham_scan 里 第一次 C[] resize 成恰好 n+2 的话。。、 。。 main 函数 不加 return 0 会有一定概率报错。。。原因不明。。。)
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
@lychees
lychees / gist:5818390
Created June 19, 2013 21:43
GCJ 2013 R3 Problem D small
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
@lychees
lychees / gist:5825727
Created June 20, 2013 19:14
GCJ 2013 R3 Problem A
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
@lychees
lychees / gist:5842537
Last active December 18, 2015 20:48
UESTC 1888. Birthday Party 。。n 个点。每个点随机向某个自己以外的点连一条边。 。。。问存在一个 k 元环的概率。。 ( n, k = 10^7 http://acm.uestc.edu.cn/problem.php?pid=1888&cid=219
#define LOCAL
/** ` Micro Mezzo Macro Flation -- Overheated Economy ., **/
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstring>
#include <cstdio>
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
@lychees
lychees / AntlerSwapping.cpp
Last active December 18, 2015 20:49
TCO 2013 Algorithm Round 3B
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
@lychees
lychees / gist:5855251
Created June 25, 2013 01:37
319E - Ping-Pong
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 20th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Jun. 26th 2013 **/ //{
/** Header .. **/ //{
#pragma comment(linker, "/STACK:36777216")
//#pragma GCC optimize ("O2")
#define LOCAL
//#include "testlib.h"
#include <functional>
#include <algorithm>
#include <iostream>