- 博客(5)
- 收藏
- 关注
原创 C语言知识点(!与~、memset)
C语言知识点 !与~的区别 !: 代表值得取反,对于整形变量,只要不为0,使用 ! 取反都是0,0取反就是1。就像 bool 只有真假一样。 ~: 代表位的取反,对于整形变量,对每一个二进制位进行取反,0变1,1变0。 举例: 在我的电脑中,对于正数,int型变量5的二进制表示为0000 0101,~5的变换如下: 1、按位取反:1111 1010 2、符号位为1,变换后为负数,需要按负数规则转换,取反加一:1000 0110 3、转换为十进制:~5 = -6 对于负数,int型变量-3的二进制表示
2021-08-15 12:09:38
348
原创 POJ2109
POJ2109 题目 Power of Cryptography Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 30684 Accepted: 15252 Description Current work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these prim
2021-08-08 10:13:49
200
原创 POJ1328(贪心)题解
POJ1328(贪心) 题目 Radar Installation Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 150055 Accepted: 33255 Description Assume 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
292
原创 POJ2965(找规律)题解
POJ2965(找规律)题解 题目 The Pilots Brothers’ refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35766 Accepted: 13828 Description The 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
196
原创 POJ1753(枚举)题解
POJ1753(枚举). 题目 Flip Game Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 65856 Accepted: 26995 Description Flip 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
242
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅