摘要: description: Color some of the cells of the \(n*n\) square's edge black, check if there exists an solution of given black cells of each edge. solution 阅读全文
posted @ 2021-03-05 21:29 _dwt 阅读(52) 评论(0) 推荐(0)
摘要: 实现了进制转换的简单算法(仅限正整数). #include<cstdio> inline int power(int x, int p) { int b = 1; while (p) { if (p & 1) b *= x; p >>= 1; x *= x; } return b; } inline 阅读全文
posted @ 2021-03-05 10:57 _dwt 阅读(18) 评论(0) 推荐(0)