CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: amrmahdi
C++
#include<iostream>
using namespace std;
 
int n , k, a , b;
long long dp[51][51];
 
long long  calc(int cur, int made)
{
    if( made > k )
        return 0;
by amrmahdi   September 06, 2010 @ 5:03pm
Tags:
104 Views
no comments
 
C++
#include<iostream>
using namespace std;
 
#define PIE (double)3.1415926535897932384626
#define eps 1e-7
double pies[10001];
int n, f, temp;
inline bool ok(double mid)
{
    int total = 0;
by amrmahdi   September 06, 2010 @ 10:30am
Tags:
50 Views
1 comments
 
C++
#include<iostream>
#include<cstdio>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<cmath>
#include<sstream>
#include<deque>
#include<queue>
by amrmahdi   September 05, 2010 @ 1:47pm
Tags:
94 Views
no comments
 
C++
#include<iostream>
#include<cstdio>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<cmath>
#include<sstream>
#include<deque>
#include<queue>
by amrmahdi   September 04, 2010 @ 3:06pm
Tags:
59 Views
no comments
 
C++
#include<iostream>
using namespace std;
 
int n , L, C;
int dp[1001][501];
int topics[1001];
int needed;
 
#define oo (int)1e9
 
by amrmahdi   September 03, 2010 @ 8:51am
Tags:
50 Views
no comments
 
C++
#include<iostream>
using namespace std;
 
const int oo (1e9);
 
int memo[10001];
int coins[501][2];
int n;
 
int dp(int mon)
by amrmahdi   August 30, 2010 @ 12:15pm
Tags:
54 Views
no comments
 
C++
#include<iostream>
using namespace std;
 
const int oo (1e9);
int budget, n;
 
int parties[101][2];
int memo[101][501];
int dp(int indx, int mon)
{
by amrmahdi   August 30, 2010 @ 12:11pm
Tags:
42 Views
no comments
 
C++
#include<iostream>
using namespace std;
#include<vector>
#include<queue>
#include<cstring>
 
const int oo (1e9);
int M, N;
 
inline bool ok(int  y, int x)
by amrmahdi   August 30, 2010 @ 11:44am
Tags:
59 Views
no comments
 
C++
#include<iostream>
#include<cstdio>
#include<vector>
#include<map>
#include<set>
#include<queue>
#include<deque>
#include<algorithm>
#include<string>
#include<cstring>
by amrmahdi   August 30, 2010 @ 10:22am
Tags:
70 Views
no comments
 
C++
#include<iostream>
using namespace std;
 
const int oo (1e9);
 
int n;
int cards[1001];
int dp[1001][1001];
int calc(int l , int r)
{
by amrmahdi   August 30, 2010 @ 10:19am
Tags:
51 Views
no comments
 
C++
#include<queue>
#include<iostream>
using namespace std;
#include<vector>
#include<set>
#include<map>
#include<stack>
#include<algorithm>
#include<string>
#include<sstream>
by amrmahdi   August 26, 2010 @ 2:14pm
Tags:
93 Views
no comments
 
C++
#include<iostream>
#include <string>
#include <vector>
#include<set>
#include<queue>
#include<map>
#include<cmath>
#include<sstream>
#include<cstdio>
#include<algorithm>
by amrmahdi   August 26, 2010 @ 2:12pm
Tags:
53 Views
no comments
 
C++
#include<iostream>
#include<algorithm>
using namespace std;
#include<cstring>
#include<vector>
 
 
vector<vector<int> > list;
vector<vector<int> > transpose;
vector<vector<int> > components;
by amrmahdi   August 26, 2010 @ 2:06pm
Tags:
62 Views
no comments
 
C++
#include<iostream>
using namespace std;
#include<queue>
#include<cstring>
 
char grid[111][111];
 
int r , c, moves[][2] = { {0,1},{1,0},{0,-1},{-1,0} };
 
by amrmahdi   August 26, 2010 @ 2:03pm
Tags:
53 Views
no comments
 
C++
#include<iostream>
using namespace std;
#include<queue>
#include<set>
#include<map>
#include<string>
 
int dp[1001];
 
by amrmahdi   August 26, 2010 @ 1:58pm
Tags:
53 Views
no comments
 
C++
#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<sstream>
using namespace std;
#include<set>
 
vector<string> current;
set<string> Insignificants;
by amrmahdi   August 26, 2010 @ 1:56pm
Tags:
49 Views
no comments
 
C++
#include "assert.h"
#include "ctype.h"
#include "math.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "time.h"
#include "algorithm"
#include "numeric"
#include "functional"
by amrmahdi   August 26, 2010 @ 1:53pm
Tags:
60 Views
no comments
 
C++
 
#include<iostream>
using namespace std;
#include<algorithm>
int N, C;
int stalls[100000];
const int INF = 2000000000;
inline bool ok(int diff) {
 
by amrmahdi   August 26, 2010 @ 1:49pm
Tags:
64 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate