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 <algorithm> | |
#include <cstdio> | |
using namespace std; | |
const int MOD = 2010; | |
const int MAX = 50011; | |
const int ITER = 12; | |
const int OFFSET = 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 <algorithm> | |
#include <cstdio> | |
using namespace std; | |
typedef long long ll; | |
const int MAX = 100011; | |
const int K = 48; | |
const int MOD = 95542721; |
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
Resources for learning web design & front-end development: | |
================================================================================ | |
**ONLINE** | |
Design | |
> http://52weeksofux.com | |
> http://thedesigncubicle.com |
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 <vector> | |
#include <cstdio> | |
#include <cstring> | |
using namespace std; | |
typedef long long LL; | |
#define MAX 100011 | |
LL B, P, L, N, st[4 * MAX], M[MAX]; |
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 <algorithm> | |
#include <string> | |
#include <cstring> | |
#include <cstdlib> | |
using namespace std; | |
#define MOD 1000000009 | |
#define MAX 1000011 |
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 <vector> | |
using namespace std; | |
#define MAX 32111 | |
int tree[MAX+1]; | |
int read(int idx) { | |
int sum = 0; |
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 <vector> | |
using namespace std; | |
#define MAX 32111 | |
int st[4 * MAX], N; | |
int query(int v, int l, int r, int i, int j) { | |
if (i > r || j < l) return 0; |
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
### | |
Module dependencies | |
### | |
require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
express = require 'express' | |
app = module.exports = express.createServer() | |
RedisStore = require 'connect-redis' |
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
struct node{ | |
int val; | |
void split(node& l, node& r){} | |
void merge(node& a, node& b) | |
{ | |
val = min( a.val, b.val ); | |
} | |
}tree[1<<(n+1)]; | |
node range_query(int root, int left_most_leaf, int right_most_leaf, int u, int v) | |
{ |
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 <cstdio> | |
#include <cmath> | |
#include <cstring> | |
#include <climits> | |
#include <vector> | |
using namespace std; | |
#define MAX 5010 | |
struct edge { | |
int from,to,cap,flow; |
NewerOlder