![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
题解
umbrellalla
这个作者很懒,什么都没留下…
展开
-
Photoshoot
Photoshoot题目描述Farmer John is lining up his N cows (2≤N≤103), numbered 1…N, for a photoshoot. FJ initially planned for the i-th cow from the left to be the cow numbered ai, and wrote down the permuta...原创 2020-02-05 15:33:15 · 574 阅读 · 0 评论 -
Sum Equals Xor
Sum Equals Xor题目描述You are given a positive integer L in base two. How many pairs of non-negative integers (a,b) satisfy the following conditions?·a+b≤L·a+b=a XOR bSince there can be extremely man...原创 2020-02-02 21:26:18 · 238 阅读 · 0 评论 -
取石子
取石子**题目描述**n+e最近在研究取⽯⼦游戏。有n堆⽯⼦,第i堆⽯⼦有ai个,最多取m堆⽯⼦(保证m≤n),请问在要求总⽯⼦数不超过k的情况下最多能取多少⽯⼦。**输入**第⼀⾏输⼊3个数字n,m,k,意义见上。第⼆⾏n个数字,依次表示ai。**输出**输出⼀个数字,表示你的答案。**样例输入 **4 3 51 1 2 3**样例输出** 5**提示**取第1、2...原创 2020-01-16 22:39:35 · 254 阅读 · 0 评论 -
/\/\/\/
题目描述A sequence a1,a2,…,an is said to be //// when the following conditions are satisfied:For each i=1,2,…,n−2, ai=ai+2.Exactly two different numbers appear in the sequence.You are given a sequence...原创 2019-03-23 20:15:57 · 375 阅读 · 0 评论