We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3f3392 commit 9667a6bCopy full SHA for 9667a6b
misc/misc_main.cpp
@@ -9,20 +9,6 @@
9
#define for2(i, a) for(int i = 0; i < int(a); ++i)
10
#define for3(i, a, b) for(int i = int(a); i <= int(b); ++i)
11
#define for4(i, a, b, c) for(int i = int(a); i <= int(b); i += int(c))
12
-#define rof1(a) for(int i = int(a)-1; i >= 0; --i)
13
-#define rof2(i, a) for(int i = int(a)-1; i >= 0; --i)
14
-#define rof3(i, a, b) for(int i = int(b); i >= int(a); --i)
15
-#define rof4(i, a, b, c) for(int i = int(b); i >= int(a); i -= int(c))
16
#define forn(...) overload4(__VA_ARGS__, for4, for3, for2, for1)(__VA_ARGS__)
17
-#define rof(...) overload4(__VA_ARGS__, rof4, rof3, rof2, rof1)(__VA_ARGS__)
18
-
19
-template <class T, class S>
20
-inline bool xmax(T &a, const S &b) {
21
- return (a < b ? a = b, 1 : 0);
22
-}
23
24
-inline bool xmin(T &a, const S &b) {
25
- return (a > b ? a = b, 1 : 0);
26
27
28
using int64 = long long;
0 commit comments