- 博客(14)
- 收藏
- 关注
转载 Find Integer
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0Accepted Submission(s): 0Special JudgeProblem Descriptionpeople in USSS love mat...
2018-08-26 19:35:00
113
转载 Margaritas on the River Walk
One of the more popular activities in San Antonio is to enjoy margaritas in the park along the river know as the River Walk. Margaritas may be purchased at many establishments along the River...
2018-08-16 15:17:00
179
转载 HDU——2955Robberies
Robberies Time Limit: 1000msMemory Limit: 32768KB This problem will be judged on HDU. Original ID: 2955 64-bit integer IO format: %I64d Java class name: Main Prev Submit Status Statist...
2018-08-15 18:47:00
141
转载 UVA11235:Frequent values(RMQ)
You are given a sequence ofnintegersa1, a2, ... , anin non-decreasing order. In addition to that, you are given several queries consisting of indicesiandj(1 ≤ i ≤ j ≤ n). For each query...
2018-08-11 15:53:00
114
转载 问题 M: 序列合并
题目描述有两个长度都是N的序列A和B,在A和B中各取一个数相加可以得到N^2个和,求这N^2个和中最小的N个。 输入 第一行一个正整数N; 第二行N个整数Ai,满足Ai<=Ai+1且Ai<=10^9; 第三行N个整数Bi, 满足Bi<=Bi+1且Bi<=10^9. 输出仅一行,...
2018-08-10 15:03:00
145
转载 Hie with the Pie POJ - 3311
The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hire only one driver to do the deliveries. He w...
2018-08-09 20:51:00
100
转载 6621: HSI
题目描述Takahashi is now competing in a programming contest, but he received TLE in a problem where the answer is YES or NO.When he checked the detailed status of the submission, there were N t...
2018-08-08 15:21:00
112
转载 6759A异或序列
题目描述已知一个长度为n的整数数列a1,a2,…,an,给定查询参数l、r,问在al,al+1,…,ar区间内,有多少子序列满足异或和等于k。也就是说,对于所有的x,y(l≤x≤y≤r),满足ax⊕ax+1⊕⋯⊕ay=k的x,y有多少组。输入输入第一行为3个整数n,m,k。第二行为空格分开的n个整数,即a1,a2,…,an。接下来m行,每行两个整数lj,rj,代表一次查...
2018-08-07 21:51:00
118
转载 莫队算法。
具体细节,看下面这两个网站,第一个是有数据举例,第二个解释比较好。结合着看容易理解一点1.https://blog.youkuaiyun.com/thinfatty/article/details/725812762.https://www.cnblogs.com/Paul-Guderian/p/6933799.html直接上题le作为一个生活散漫的人,小Z每天早上都要耗费很久...
2018-08-06 18:09:00
71
转载 gcd辗转相除法
//比较简单的一篇随笔~~~#include<bits/stdc++.h>using namespace std;int gcd(int a, int b){ if(b==0) return a; else gcd(b,a%b);}int main(){ int a,b; while(~s...
2018-08-06 14:21:00
163
转载 确定比赛名次 HDU - 1285 ,拓扑
有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获得每个队的比赛成绩,只知道每场比赛的结果,即P1赢P2,用P1,P2表示,排名时P1在P2之前。现在请你编程序确定排名。 Input输入有若干组,每组中的第一行为二个数N(1<=N<=500)...
2018-08-05 19:27:00
102
转载 HDU 1520 Anniversary party
There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure of employees. It means that the supervisor relation form...
2018-08-05 18:15:00
104
转载 Finite Encyclopedia of Integer Sequences
题目描述In Finite Encyclopedia of Integer Sequences (FEIS), all integer sequences of lengths between 1 and N (inclusive) consisting of integers between 1 and K (inclusive) are listed.Let the tota...
2018-08-04 16:47:00
118
转载 i.sandglass
i.sandglass题目描述We have a sandglass consisting of two bulbs, bulb A and bulb B. These bulbs contain some amount of sand. When we put the sandglass, either bulb A or B lies on top of the other ...
2018-07-30 17:14:00
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人