Format:
Recent snippets for: amrmahdi
#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;
104 Views
no comments
#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;
50 Views
1 comments
#include<iostream> #include<cstdio> #include<vector> #include<map> #include<set> #include<algorithm> #include<cmath> #include<sstream> #include<deque> #include<queue>
94 Views
no comments
#include<iostream> #include<cstdio> #include<vector> #include<map> #include<set> #include<algorithm> #include<cmath> #include<sstream> #include<deque> #include<queue>
59 Views
no comments
#include<iostream> using namespace std; int n , L, C; int dp[1001][501]; int topics[1001]; int needed; #define oo (int)1e9
50 Views
no comments
#include<iostream> using namespace std; const int oo (1e9); int memo[10001]; int coins[501][2]; int n; int dp(int mon)
54 Views
no comments
#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) {
42 Views
no comments
#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)
59 Views
no comments
#include<iostream> #include<cstdio> #include<vector> #include<map> #include<set> #include<queue> #include<deque> #include<algorithm> #include<string> #include<cstring>
70 Views
no comments
#include<iostream> using namespace std; const int oo (1e9); int n; int cards[1001]; int dp[1001][1001]; int calc(int l , int r) {
51 Views
no comments
#include<queue> #include<iostream> using namespace std; #include<vector> #include<set> #include<map> #include<stack> #include<algorithm> #include<string> #include<sstream>
93 Views
no comments
#include<iostream> #include <string> #include <vector> #include<set> #include<queue> #include<map> #include<cmath> #include<sstream> #include<cstdio> #include<algorithm>
53 Views
no comments
#include<iostream> #include<algorithm> using namespace std; #include<cstring> #include<vector> vector<vector<int> > list; vector<vector<int> > transpose; vector<vector<int> > components;
62 Views
no comments
#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} };
53 Views
no comments
#include<iostream> using namespace std; #include<queue> #include<set> #include<map> #include<string> int dp[1001];
53 Views
no comments
#include<iostream> #include<vector> #include<algorithm> #include<string> #include<sstream> using namespace std; #include<set> vector<string> current; set<string> Insignificants;
49 Views
no comments
#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"
60 Views
no comments
#include<iostream> using namespace std; #include<algorithm> int N, C; int stalls[100000]; const int INF = 2000000000; inline bool ok(int diff) {
64 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
