摘要: Description Farmer John's N (1 =0)$$ 不过肯定会T就是了。我们考虑每次转移只考虑到sum[i]与sum[j]的大小关系,于是我们只要将前缀和离散化一下然后丢到树状数组里处理下就好了 include include include include include d 阅读全文
posted @ 2018-02-04 21:43 Wolfycz 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has taken the cows to a vacation out on the ocean! The cows are living on N (1 include include include include define inf 0x7f 阅读全文
posted @ 2018-02-04 21:36 Wolfycz 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Description 上下有两个长度为n、位置对应的序列A、B, 其中数的范围均为1~n。若abs(A[i] B[j]) include include include include define inf 0x7f7f7f7f using namespace std; typedef long 阅读全文
posted @ 2018-02-04 21:35 Wolfycz 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description 给定长度为2N的序列,1~N各处现过2次,i第一次出现位置记为ai,第二次记为bi,求满足ai include include include include define lowbit(x) ((x)&( x)) define inf 0x7f7f7f7f using na 阅读全文
posted @ 2018-02-04 21:35 Wolfycz 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Description 有一幅n n的方格图,n include include include include define inf 0x7f7f7f7f using namespace std; typedef long long ll; typedef unsigned int ui; typ 阅读全文
posted @ 2018-02-04 21:34 Wolfycz 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Description Having become bored with standard 2 dimensional artwork (and also frustrated at others copying her work), the great bovine artist Picowso 阅读全文
posted @ 2018-02-04 17:07 Wolfycz 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Description 约翰到奶牛商场里买工具.商场里有K(1≤K≤100).种工具,价格分别为1,2,…,K美元.约翰手里有N(1≤N≤1000)美元,必须花完.那他有多少种购买的组合呢? Input A single line with two space separated integers: 阅读全文
posted @ 2018-02-04 17:06 Wolfycz 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John's N (1 include include include include define inf 0x7f7f7f7f using namespace std; typedef long long ll; typedef unsigned int u 阅读全文
posted @ 2018-02-04 17:05 Wolfycz 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Day0 下午来到熟悉的长沙理工,简单到考场转转就各自散了。回宾馆后有点淡淡的焦虑…… 晚上被教练喊去开机房人民代表大会,大家简单讨论了一下,回去后找wzy要了个对拍,然后就带着焦虑睡下了。 Day1 进考场后发现机子显示器崩了……吓坏,怕不是个好兆头。然后看下题目,T1感觉可写,T2貌似有点难度, 阅读全文
posted @ 2018-02-04 17:05 Wolfycz 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Description 农民John的某 N 头奶牛 (1 include include include include define inf 0x7f7f7f7f using namespace std; typedef long long ll; typedef unsigned int ui 阅读全文
posted @ 2018-02-04 17:04 Wolfycz 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Description One of the most popular attractions at the county fair is the climbing wall. Bessie wants to plan her trip up the wall in advance and need 阅读全文
posted @ 2018-02-04 17:03 Wolfycz 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has returned to the County Fair so he can attend the special events (concerts, rodeos, cooking shows, etc.). He wants to atten 阅读全文
posted @ 2018-02-04 17:03 Wolfycz 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John is trying to figure out when his last shipment of feed arrived. Starting with an empty grain bin, he ordered and received F1 ( 阅读全文
posted @ 2018-02-03 23:01 Wolfycz 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Description The cows have been sent on a mission through space to acquire a new milking machine for their barn. They are flying through a cluster of s 阅读全文
posted @ 2018-02-03 23:01 Wolfycz 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Description Bessie is in Camelot and has encountered a sticky situation: she needs to pass through the forest that is guarded by the Knights of Ni. In 阅读全文
posted @ 2018-02-03 23:00 Wolfycz 阅读(152) 评论(0) 推荐(0) 编辑