All c++ Standard library in one include statement!

Found this interesting post on codeforces. Thought I should share it with you guys:

http://codeforces.com/blog/entry/8387

Tested it with the following code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <bits/stdc++.h>
#define _ std::ios_base::Init i; std::ios_base::sync_with_stdio(false); std::cin.tie(0);

using namespace std;

int main() { _
	string g;
	cin >> g;
	cout << g << endl;
	deque<char> SDS;
	for ( char a = 'A'; a <= 'Z'; a++ ) {
		SDS.push_front(a);
	}
	random_shuffle(SDS.begin(), SDS.end());
	
	for (auto g: SDS ){
		cout << g << " ";
	}
}


Try it and see if it works on your machine. Remember to compile with -std=c++11 or -std=gnu++11
Last edited on
Topic archived. No new replies allowed.