上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: 题目描述 《飞扬的小鸟》是一款风靡的小游戏。在游戏中,小鸟一开始位于(0,0)处,它的目标是飞到横坐标为X的某个位置上。每一秒,你可以选择点击屏幕,那么小鸟会从(x,y)飞到(x+1,y+1),或者不点击,那么小鸟会飞到(x+1,y-1)。在游戏中还有n个障碍物,用三元组(x[i],a[i],b[i 阅读全文
posted @ 2018-12-12 20:56 l..q 阅读(167) 评论(0) 推荐(0)
摘要: 题目描述 给定一个长度为n的序列,你有一次机会选中一段连续的长度不超过d的区间,将里面所有数字全部修改为0。请找到最长的一段连续区间,使得该区间内所有数字之和不超过p。 输入 第一行包含三个整数n,p,d(1<=d<=n<=2000000,0<=p<=10^16)。第二行包含n个正整数,依次表示序列 阅读全文
posted @ 2018-12-11 17:56 l..q 阅读(264) 评论(0) 推荐(0)
摘要: 题目描述 B进制数,每个数字i(i=0,1,...,B-1)有a[i]个。你要用这些数字组成一个最大的B进制数X(不能有前导零,不需要用完所有数字),使得X是B-1的倍数。q次询问,每次询问X在B进制下的第k位数字是什么(最低位是第0位)。 输入 第一行包含两个正整数B(2<=B<=10^6),q( 阅读全文
posted @ 2018-12-09 17:26 l..q 阅读(181) 评论(0) 推荐(0)
摘要: 题目描述 Let S(n) denote the sum of the digits in the decimal notation of n. For example, S(123)=1+2+3=6.We will call an integer n a Snuke number when, fo 阅读全文
posted @ 2018-11-29 22:07 l..q 阅读(454) 评论(0) 推荐(0)
摘要: 问题 G: 约数研究 时间限制: 1 Sec 内存限制: 128 MB提交: 30 解决: 25[提交] [状态] [讨论版] [命题人:admin] 题目描述 科学家们在Samuel星球上的探险得到了丰富的能源储备,这使得空间站中大型计算机“Samuel II”的长时间运算成为了可能。由于在去年一 阅读全文
posted @ 2018-11-16 10:16 l..q 阅读(209) 评论(0) 推荐(0)
摘要: 题目描述 Ian's going to California, and he has to pack his things, including his collection of cirles. Given a set of cirles, your program must find the s 阅读全文
posted @ 2018-11-13 13:51 l..q 阅读(304) 评论(0) 推荐(0)
摘要: D.Frog and Portal 构造:若从x到200有m种跳法,如何建立传送门: 当m是0时,建立x->x的传送门(特判x==0的情况) 否则, 当m是偶数时,建立x+1->x+3以及x+2>x+3的传送门,则问题转化为从x+3到200有m/2种跳法,如何建立传送门 当m是奇数时,建立x+1-> 阅读全文
posted @ 2018-11-12 20:26 l..q 阅读(202) 评论(0) 推荐(0)
摘要: Description Word puzzles are usually simple and very entertaining for all ages. They are so entertaining that Pizza-Hut company started using table co 阅读全文
posted @ 2018-10-19 17:56 l..q 阅读(784) 评论(0) 推荐(0)
摘要: Description Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. America 阅读全文
posted @ 2018-10-16 15:42 l..q 阅读(355) 评论(0) 推荐(0)
摘要: AC代码: #include<cstdio> #include<algorithm> typedef long long ll; using namespace std; ll phi[10000005]; ll prime[10000005],num=0; bool vis[10000005]; 阅读全文
posted @ 2018-10-07 11:12 l..q 阅读(208) 评论(0) 推荐(1)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页