- 博客(5)
- 收藏
- 关注
原创 C语言知识点(!与~、memset)
C语言知识点!与~的区别!: 代表值得取反,对于整形变量,只要不为0,使用 ! 取反都是0,0取反就是1。就像 bool 只有真假一样。~: 代表位的取反,对于整形变量,对每一个二进制位进行取反,0变1,1变0。举例:在我的电脑中,对于正数,int型变量5的二进制表示为0000 0101,~5的变换如下:1、按位取反:1111 10102、符号位为1,变换后为负数,需要按负数规则转换,取反加一:1000 01103、转换为十进制:~5 = -6对于负数,int型变量-3的二进制表示
2021-08-15 12:09:38
312
原创 POJ2109
POJ2109题目Power of CryptographyTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 30684 Accepted: 15252DescriptionCurrent work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these prim
2021-08-08 10:13:49
163
原创 POJ1328(贪心)题解
POJ1328(贪心)题目Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 150055 Accepted: 33255DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a p
2021-08-07 16:38:49
251
原创 POJ2965(找规律)题解
POJ2965(找规律)题解题目The Pilots Brothers’ refrigeratorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 35766 Accepted: 13828DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a re
2021-08-06 13:26:41
160
原创 POJ1753(枚举)题解
POJ1753(枚举).题目Flip GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 65856 Accepted: 26995DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white
2021-08-05 17:09:16
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人