![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学&&其他知识
RRicky_
这个作者很懒,什么都没留下…
展开
-
【HDU2012】素数判定
对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39<=x<y<=50),判定该表达式的值是否都为素数。 Input 输入数据有多组,每组占一行,由两个整数x,y组成,当x=0,y=0时,表示输入结束,该行不做处理。 Output 对于每个给定范围内的取值,如果表达式的值都为素数,则输出”OK”,否则请输出“Sorry”,每组输出占一行。 Sa原创 2017-08-01 23:20:09 · 273 阅读 · 0 评论 -
H - Birthday Paradox【生日悖论】
题目Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are23 people including you. What is th原创 2017-07-31 23:11:14 · 616 阅读 · 0 评论 -
【HPU1189】Ou à [数学]
http://acm.hpu.edu.cn/problem.php?id=11891189: Ou à [数学] 时间限制: 1 Sec 内存限制: 128 MB提交: 440 解决: 281 统计 题目描述 Ou à是什么东东?华丽的分割线?233333……Ocean的小学弟学习了新的二进制运算异或”^”。对于0、10、1二进制位而言,异或运算结果如下:0 ^ 0 = 0,0 ^ 1 = 1原创 2017-08-21 20:39:54 · 396 阅读 · 0 评论