09 2017 档案
摘要:非常不喜欢链表操作, 又因为 c++ STL 库里 自带 stack 函数, 但是 实验课 需要自己写, 好吧模仿STL stack 写到一个结构体中, 这让我习惯了stack 函数的人很舒服。(1)输入一个十进制数,利用栈操作,将该数转换成n进制数。(...
阅读全文
摘要:1012: [JSOI2008]最大数maxnumberTime Limit: 3 Sec Memory Limit: 162 MBSubmit: 11164 Solved: 4883[Submit][Status][Discuss]Description 现在...
阅读全文
摘要:请客官老爷移步:http://www.cnblogs.com/scau20110726/archive/2013/04/12/3016765.htmlhttp://blog.csdn.net/qq_18661257/article/details/47658191嘻嘻...
阅读全文
摘要:求矩阵 并集的面积; 用线段树来解决推荐一个 线段树求 矩阵交并集的 思路:http://www.cnblogs.com/scau20110726/archive/2013/04/12/3016765.html客官老爷请移步:线段树矩阵交并集 模板代码:http://...
阅读全文
摘要:Let SS be a sequence of integers s_{1}s1, s_{2}s2, ......, s_{n}sn Each integer is is associated with a weight by the followi...
阅读全文
摘要:时间限制:1000ms单点时限:1000ms内存限制:256MB描述For Argo, it is very interesting watching a circle bouncing in a rectangle.As shown in the figure be...
阅读全文
摘要:题目1 : Visiting Peking University时间限制:1000ms单点时限:1000ms内存限制:256MB描述Ming is going to travel for n days and the date of these days can be...
阅读全文
摘要:问题 C: 三元排序时间限制: 1 Sec 内存限制: 128 MB提交: 101 解决: 23[提交][状态][讨论版]题目描述 一次交换操作是指将数列中的两个数位置对调。给出一个只有1、2、3三个元素的数列,你需要通过有限次交换使数列中的数从小到大排列。请求出...
阅读全文
摘要:传送门: http://acm.hdu.edu.cn/showproblem.php?pid=5726GCDTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Oth...
阅读全文
摘要:RMQ (RangeMinimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j)(i,j<=n),返回数列A中下标在i,j里的最小(大)值,也就是说,RMQ问题是指求区间最值的问题。解决的方法有: 1、朴素(即搜索),...
阅读全文
摘要:UVA 第一次用 不会用, 输出错误 竟然 发邮箱 , 好贴心的操作贪心, 按照从小 到大排序, 然后 二分背包数目, 因为 背包 最大就是 n 所以 #include #include #include #include #include #in...
阅读全文
摘要:定理1: 最大流最小割定量: 在任何的网络中,最大流的值等于最小割的容量定理2:在任何网络中,如果f是一个流,CUT(S,T)是一个割,且f的值等于割CUT(S,T)的容量,那么f是一个最大流结论1:最大流时,最小割cut(S,T)中,正向割边的流量=容量,逆向割边的...
阅读全文
摘要:f(cos(x))=cos(n∗x) holds for all xx.Given two integers nn and mm, you need to calculate the coefficient of x^mxm in f(x)f(x), modu...
阅读全文
摘要:传送门: https://nanti.jisuanke.com/t/17115Bob has a not even coin, every time he tosses the coin, the probability that the coin's front ...
阅读全文
摘要:问题 K: keks时间限制: 1 Sec 内存限制: 128 MB提交: 24 解决: 5[提交][状态][讨论版]题目描述给出一个n位数,要求删掉其中k位数字,使得剩下的数字组成的数尽量大。输入第1行:两个正整数n, k(1 <= k < n <= 500,0...
阅读全文
摘要:Minimum CostTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 17336 Accepted: 6095DescriptionDearboy, a goods victualer, now c...
阅读全文
摘要:Going HomeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 23603 Accepted: 11885DescriptionOn a grid map there are n little m...
阅读全文
摘要:1001: [BeiJing2006]狼抓兔子Time Limit: 15 Sec Memory Limit: 162 MBSubmit: 24061 Solved: 6086[Submit][Status][Discuss]Description现在小朋友们最喜...
阅读全文
摘要:A Plug for UNIXTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 17529 Accepted: 6055DescriptionYou are in charge of setting u...
阅读全文
摘要:DiningTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 19307 Accepted: 8607DescriptionCows are such finicky eaters. Each cow ...
阅读全文
摘要:Our bear's forest has a checkered field. The checkered field is an n × n table, the rows are numbered from 1 to n from top to bottom, ...
阅读全文
摘要:Flow Shop时间限制: 6 Sec 内存限制: 128 MB提交: 16 解决: 15[提交][状态][讨论版]题目描述harvest grain). All swathers go through the same basic stages in the...
阅读全文
摘要:B: Election时间限制: 1 Sec 内存限制: 128 MB提交: 122 解决: 21[提交][状态][讨论版]题目描述After all the fundraising, campaigning and debating, the election ...
阅读全文
摘要:B: Base Sums时间限制: 1 Sec 内存限制: 128 MB提交: 17 解决: 0[提交][状态][讨论版]题目描述Given three values n, a, and b, find the smallest m>n such that the...
阅读全文
摘要:E: CS Course时间限制: 2 Sec 内存限制: 512 MB提交: 79 解决: 21[提交][状态][讨论版]题目描述Little A has come to college and majored in Computer and Science.T...
阅读全文
摘要:先贴上,代码吃完饭回来补, 吃饭为大.A: Aerial Tramway时间限制: 1 Sec 内存限制: 128 MB提交: 0 解决: 0[提交][状态][讨论版]题目描述An aerial tramway, cable car, ropeway or aer...
阅读全文
摘要:H: Intelligent Parking Building时间限制: 1 Sec 内存限制: 128 MB提交: 22 解决: 20[提交][状态][讨论版]题目描述There is a new revolution in the parking lot bu...
阅读全文

浙公网安备 33010602011771号