准备校招刷题中,在hihocoder上看别人的代码突然发现了这样的神器, #include<bits/stdc++.h>
可以包含一下所有头文件。
#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <deque>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <map>
#include <stack>
#include <set>
对于刷leetcode的大家就不用担心这个问题啦,对于一些传统的OJ平台,大家可以尝试者去使用。
再贴一下 #include <bits/stdc++.h>
的源代码
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2014 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the