mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Don't use bits/stdc++.h
This commit is contained in:
parent
f51c5e11ef
commit
f659bcc9fc
@ -1,4 +1,4 @@
|
|||||||
#include<bits/stdc++.h>
|
#include <iostream>
|
||||||
# define n 8
|
# define n 8
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -3,7 +3,7 @@ contains prices of all pieces of size smaller than n. Determine
|
|||||||
the maximum value obtainable by cutting up the rod and selling
|
the maximum value obtainable by cutting up the rod and selling
|
||||||
the pieces.*/
|
the pieces.*/
|
||||||
|
|
||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int cutrod(int p[], int n)
|
int cutrod(int p[], int n)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int fib(int n)
|
int fib(int n)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int arr[1000000];
|
int arr[1000000];
|
||||||
int fib(int n)
|
int fib(int n)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// in O(n log n)
|
// in O(n log n)
|
||||||
// tested on : https://cses.fi/problemset/task/1145/
|
// tested on : https://cses.fi/problemset/task/1145/
|
||||||
|
|
||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int LIS(int arr[], int n)
|
int LIS(int arr[], int n)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include<bits/stdc++.h>
|
#include <iosrteam>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
int max(int a,int b)
|
int max(int a,int b)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
class graph
|
class graph
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
int v = 4;
|
int v = 4;
|
||||||
void DFSUtil_(int graph[4][4], bool visited[], int s)
|
void DFSUtil_(int graph[4][4], bool visited[], int s)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "bits/stdc++.h"
|
#include <iostream>
|
||||||
//#include <boost/multiprecision/cpp_int.hpp>
|
//#include <boost/multiprecision/cpp_int.hpp>
|
||||||
//using namespace boost::multiprecision;
|
//using namespace boost::multiprecision;
|
||||||
const int mx = 1e6 + 5;
|
const int mx = 1e6 + 5;
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include<bits/stdc++.h>
|
//#include<bits/stdc++.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
// Find the lowest common ancestor using binary lifting in O(nlogn)
|
// Find the lowest common ancestor using binary lifting in O(nlogn)
|
||||||
|
@ -18,7 +18,7 @@ Steps for Matrix Expo
|
|||||||
The first element of this matrix is the required result.
|
The first element of this matrix is the required result.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <bits/stdc++.h>
|
#include <iostream>
|
||||||
using std::cin;
|
using std::cin;
|
||||||
using std::cout;
|
using std::cout;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "bits/stdc++.h"
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
const int N = 1e6 + 5;
|
const int N = 1e6 + 5;
|
||||||
int a[N], bucket[N], cnt[N];
|
int a[N], bucket[N], cnt[N];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Binary Indexed Tree.
|
// Binary Indexed Tree.
|
||||||
#include<bits/stdc++.h>
|
#include <iostream>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <bits/stdc++.h>
|
//#include <bits/stdc++.h>
|
||||||
|
#incldue <iostream>
|
||||||
#define MAX 4000000
|
#define MAX 4000000
|
||||||
using namespace std;
|
using namespace std;
|
||||||
typedef long long ll;
|
typedef long long ll;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// C++ program to perform TimSort.
|
// C++ program to perform TimSort.
|
||||||
#include<bits/stdc++.h>
|
#include <iostream>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
const int RUN = 32;
|
const int RUN = 32;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user