This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8080; | |
server_name localhost; | |
location / { | |
proxy_pass tcp://chat-main.hipchat.com:5222; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _SELECTION_TEST_H | |
#define _SELECTION_TEST_H | |
#include <iostream> | |
#include <iomanip> | |
#include <vector> | |
#include <typeinfo> | |
#include <cassert> | |
#include "selection.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <vector> | |
#include <cassert> | |
#include <cstdio> | |
#include <iostream> | |
using namespace std; | |
#define MAXN 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
template<typename T> | |
struct p2d { | |
T x, y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <queue> | |
#include <algorithm> | |
#define MAXN 100005 | |
using namespace std; | |
typedef pair<int, int> pii; | |
typedef priority_queue<pii> prique; | |
pii M[MAXN]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nomodeline | |
set background=dark | |
syntax on | |
set smarttab | |
set nobackup | |
set autoindent | |
set smartindent | |
set sw=2 | |
set tabstop=2 | |
set softtabstop=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
#define MOD 100000000000000LL; | |
using namespace std; | |
typedef long long ll; | |
const int MAXN = 100, L = 2 * MAXN + 1, ini = MAXN * L + MAXN; | |
ll M[L*L][MAXN+1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <set> | |
#include <cstring> | |
#define MAXN 60 | |
using namespace std; | |
typedef long long ll; | |
ll A[MAXN]; | |
multiset<ll> S; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nomodeline | |
set background=dark | |
syntax on | |
set smarttab | |
set nobackup | |
set autoindent | |
set smartindent | |
set sw=2 | |
set tabstop=2 | |
set softtabstop=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
#include <vector> | |
#define MAXN 50000000 | |
using namespace std; | |
bool isp[MAXN]; | |
vector<int> sieve(int q = 3) { |