We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5cccb commit a82e06fCopy full SHA for a82e06f
1 file changed
src/alfred/debug
@@ -18,6 +18,18 @@ using std::string;
18
19
const long long dbg_inf = 9e18 + 19260817;
20
21
+std::string _bin(long long v) {
22
+ assert(v >= 0);
23
+ std::string res;
24
+ if (v == 0) return "0";
25
+ while (v > 0) {
26
+ res += char((v & 1) | 48);
27
+ v >>= 1;
28
+ }
29
+ std::reverse(res.begin(), res.end());
30
+ return res;
31
+}
32
+
33
void __print(int x) { cerr << x; }
34
void __print(long x) { cerr << x; }
35
void __print(long long x) {
0 commit comments