随笔分类 -  思路题

摘要:Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transm... 阅读全文
posted @ 2017-05-22 19:04 xushukui 阅读(156) 评论(0) 推荐(0) 编辑
摘要:There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules: ● a i ∈ 0,n0,n ● a i ≠ a j( i ≠ j ... 阅读全文
posted @ 2017-04-18 08:58 xushukui 阅读(181) 评论(0) 推荐(0) 编辑
摘要:费马大定理:当n>2时,不定方程an+bn=cn没有正整数解。比如a3+b3=c3没有正整数解。为了活跃气氛,我们不妨来个搞笑版:把方程改成a3+b3=c3,这样就有解了,比如a=4, b=9, c=79时43+93=793。输入两个整数x, y, 求满足x#include#incl... 阅读全文
posted @ 2017-04-04 20:40 xushukui 阅读(314) 评论(0) 推荐(0) 编辑
摘要:Recently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, the p... 阅读全文
posted @ 2017-03-24 20:07 xushukui 阅读(226) 评论(0) 推荐(0) 编辑
摘要:设2n张牌分别标记为1, 2, …, n, n+1, …, 2n,初始时这2n张牌按其标号从小到大排列。经一次洗牌后,原来的排列顺序变成n+1, 1, n+2, 2, …, 2n, n。即前n张牌被放到偶数位置2, 4, …, 2n,而后n张牌被放到奇数位置1, 3, …, 2n-1... 阅读全文
posted @ 2017-03-24 16:54 xushukui 阅读(329) 评论(0) 推荐(0) 编辑
摘要:time limit per test1 second memory limit per test256 megabytes inputstandard input outpu... 阅读全文
posted @ 2017-03-17 18:55 xushukui 阅读(171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示