Advertisement
palmerstone

Template

May 30th, 2012
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. #include <ios>
  2. #include <new>
  3. #include <cstdio>
  4. #include <cmath>
  5. #include <cstring>
  6. #include <cctype>
  7. #include <cstdlib>
  8. #include <climits>
  9. #include <ctime>
  10. #include <assert.h>
  11. #include <istream>
  12. #include <ostream>
  13. #include <iostream>
  14. #include <iomanip>
  15. #include <algorithm>
  16. #include <vector>
  17. #include <string>
  18. #include <numeric>
  19. #include <fstream>
  20. #include <sstream>
  21. #include <map>
  22. #include <set>
  23. #include <list>
  24. #include <stack>
  25. #include <queue>
  26. #include <deque>
  27. #include <locale>
  28. #include <memory>
  29. #include <valarray>
  30. #include <complex>
  31. #include <limits>
  32. #include <bitset>
  33. #include <iterator>
  34. #include <utility>
  35. #include <exception>
  36. #include <functional>
  37. #include <streambuf>
  38. #include <typeinfo>
  39. #include <cxxabi.h>
  40. #include <tr1/cstdio>
  41. #include <tr1/cstdlib>
  42. #include <tr1/cmath>
  43. #include <tr1/climits>
  44. #include <tr1/cfenv>
  45. #include <tr1/cstdarg>
  46. #include <tr1/ctgmath>
  47. #include <tr1/cstdbool>
  48. #include <tr1/ctime>
  49. #include <tr1/cstdint>
  50. #include <tr1/cwchar>
  51. #include <tr1/cwctype>
  52. #include <tr1/cinttypes>
  53. #include <ext/algorithm>
  54. #include <ext/functional>
  55. #include <ext/new_allocator.h>
  56. #include <ext/pod_char_traits.h>
  57. #include <ext/vstring.h>
  58. #include <ext/stdio_filebuf.h>
  59. #include <ext/atomicity.h>
  60. #include <ext/concurrence.h>
  61. #include <ext/iterator>
  62. #include <ext/numeric>
  63. #include <ext/stdio_sync_filebuf.h>
  64. #include <ext/pool_allocator.h>
  65. #include <ext/array_allocator.h>
  66. #include <ext/debug_allocator.h>
  67. #include <ext/malloc_allocator.h>
  68. #include <ext/throw_allocator.h>
  69. #include <ext/bitmap_allocator.h>
  70. #include <ext/enc_filebuf.h>
  71. #include <ext/memory>
  72. #include <ext/rope>
  73. #include <ext/typelist.h>
  74. #include <ext/cast.h>
  75. #include <ext/mt_allocator.h>
  76. #include <ext/extptr_allocator.h>
  77. #include <ext/slist>
  78. #include <ext/type_traits.h>
  79. #include <debug/bitset>
  80. #include <debug/string>
  81. #include <debug/deque>
  82. #include <debug/set>
  83. #include <debug/map>
  84. #include <debug/list>
  85. #include <debug/vector>
  86. #include <tr1/functional>
  87. #include <tr1/array>
  88. #include <tr1/memory>
  89. #include <tr1/tuple>
  90. #include <tr1/utility>
  91. #include <tr1/type_traits>
  92. #include <tr1/regex>
  93. #include <tr1/random>
  94. #include <tr1/unordered_set>
  95. #include <tr1/unordered_map>
  96. #include <ext/rb_tree>
  97. #include <ext/numeric_traits.h>
  98. #include <ext/codecvt_specializations.h>
  99.  
  100. #define vinf (1 << 28)
  101. #define inf ((~0U) >> (1))
  102. #define pi (2.0 * acos(0.0))
  103. #define lowbit(x) ((x) & (-(x)))
  104. #define sine(x) (sin(radians(x)))
  105. #define cosine(x) (cos(radians(x)))
  106. #define tangent(x) (tan(radians(x)))
  107. #define arcsine(x) (degrees((asin(x))))
  108. #define arccosine(x) (degrees((acos(x))))
  109. #define arctangent(x) (degrees((atan(x))))
  110. #define clr(ar) (memset(ar, 0, sizeof(ar)))
  111. #define radians(x) (((1.0 * x * pi) / 180.0))
  112. #define degrees(x) (((x * 180.0) / (1.0 * pi)))
  113. #define read() (freopen("lol.txt", "r+", stdin))
  114. #define write() (freopen("lol.txt", "w+", stdout))
  115. #define dbg(x) (std::cout << #x << " = " << x << endl)
  116. #define twopow(x) ((((x & (x - 1)) == 0) && (x != 0)) ? (true) : (false))
  117. #define mod(n, m) ((n >= 0) ? (n % m) : ((abs(n) % m) == 0) ? 0 : (m - (abs(n) % m)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement