摘要: In "Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the 阅读全文
posted @ 2018-02-05 15:12 Luvwgyx 阅读(224) 评论(0) 推荐(0)
摘要: 去掉最后一位 : 示例:$(101101 \Rightarrow 10110)$ 位运算:$x 1$ 在最后加一个0 示例:$(101101\Rightarrow1011010)$ 位运算:$x k)\ and \ 1$ 取整数n在二进制表示下的后k位 位运算:$n\ and\ ((1 (k 1)\ 阅读全文
posted @ 2018-02-03 16:31 Luvwgyx 阅读(341) 评论(0) 推荐(0)
摘要: 前言: 这份讲解只针对于C++新手,各位大佬请绕道,如有讲解错误的地方可留言给我,我会在第一时间回复并加以改正。 引入: 快速幂的定义:顾名思义,快速幂就是快速算底数的n次幂。其时间复杂度为 O(log₂N), 与朴素的O(N)相比效率有了极大的提高。 铺垫: 因为在代码实现中要用到位运算,没有学过 阅读全文
posted @ 2018-02-03 11:36 Luvwgyx 阅读(366) 评论(0) 推荐(0)
摘要: Description People are different. Some secretly read magazines full of interesting girls' pictures, others creat e an A bomb in their cellar, others l 阅读全文
posted @ 2018-01-28 20:11 Luvwgyx 阅读(174) 评论(0) 推荐(0)