
-------常用技巧与算法-------
文章平均质量分 73
阿阿阿黄
后续文章更新:https://segmentfault.com/u/aaahuang
展开
-
zzulioj--1816
1816: 矩形Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 101 Solved: 30SubmitStatusWeb BoardDescription小S和小D两个小雪参,在玩一个关于矩形的游戏以帮助他们学会怎么计算矩形的面积然后完成作业去打游戏(两个小雪参一起打游戏你怕不怕!)。他们约定每个人给出两个坐标,分别原创 2015-12-10 20:24:38 · 598 阅读 · 0 评论 -
CodeForces 630H- Benches【组合数学】
BenchesTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThe city park of IT City contains n east to west paths and n north to south原创 2016-03-10 22:19:38 · 412 阅读 · 0 评论 -
CodeForces 618A(观察样例--找规律)
Slime CombiningTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 618ADescriptionYour friend recently gave you some slim原创 2016-03-12 12:26:33 · 658 阅读 · 0 评论 -
CF630K:Indivisibility(容斥)
IndivisibilityTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionIT City company developing computer games decided to upgrade its wa原创 2016-03-12 21:07:45 · 472 阅读 · 0 评论 -
codeforces 630G Challenge Pennants(组合数学)
Challenge PennantsTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionBecause of budget cuts one IT company established new non-financi原创 2016-03-12 22:10:14 · 458 阅读 · 0 评论 -
CodeForces 630P(正弦定理求三角形面积)
Area of a StarTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 630PDescriptionIt was decided in IT City to distinguish原创 2016-03-14 21:34:34 · 1465 阅读 · 0 评论 -
nyoj170
网络的可靠性时间限制:3000 ms | 内存限制:65535 KB难度:3描述A公司是全球依靠的互联网解决方案提供商,也是2010年世博会的高级赞助商。它将提供先进的网络协作技术,展示其”智能+互联“的生活概念,同时为参观者提供高品质的个人体验和互动,以”信息通信,尽情城市梦想”为主题贯穿。借助奇幻的剧场大屏幕和特效,展现信息通信技术的应用前景,通过生原创 2016-03-25 15:17:14 · 387 阅读 · 0 评论 -
hdu--Let's go to play
Let's go to playTime Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 770 Accepted Submission(s) : 213Font: Times New Roman | Verdana | Ge原创 2016-03-26 17:46:52 · 406 阅读 · 0 评论 -
★ZZULIoj--1870(枚举好题)
1870: 马拉松后记Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 57 Solved: 22SubmitStatusWeb BoardDescription毛毛雨学姐跑完了半程马拉松,接下来决定去参加山地越野赛了,主办方听说毛毛雨学姐是一位ACMer,就想让她来帮忙解决一下赛场问题:已知在山地越野场地有N座土坡原创 2016-04-12 20:23:09 · 1196 阅读 · 0 评论 -
Whuoj-1603
Problem C - Distance on TreeTime Limit:500MS Memory Limit: 65536KB Total Submit: 38 Accepted: 3 SpecialJudge: NoDescriptionGive you two integers N and k, denote that:a tree has N nodes,原创 2016-04-09 18:58:37 · 620 阅读 · 0 评论 -
nyoj303
序号互换时间限制:1000 ms | 内存限制:65535 KB难度:2描述Dr.Kong设计了一个聪明的机器人卡多,卡多会对电子表格中的单元格坐标快速计算出来。单元格的行坐标是由数字编号的数字序号,而列坐标使用字母序号。观察字母序号,发现第1列到第26列的字母序号分别为A,B,…,Z,接着,第27列序号为AA,第28列为AB,依此类推。若给Dr原创 2016-03-28 21:00:47 · 471 阅读 · 0 评论 -
poj-3080
Blue JeansTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 15694 Accepted: 6978DescriptionThe Genographic Project is a research partnership between IBM a原创 2016-04-26 19:42:01 · 462 阅读 · 0 评论 -
CodeForces 632A(反向模拟)
Grandma Laura and ApplesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 632ADescriptionGrandma Laura came to the mark原创 2016-03-10 21:20:32 · 502 阅读 · 0 评论 -
Codeforces--630F--Selection of Personnel(组合数)
Selection of PersonnelTime Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOne company of IT City decided to create a group of innovat原创 2016-03-09 18:08:23 · 478 阅读 · 0 评论 -
UESTC--1256
昊昊爱运动Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others)Submit Status昊昊喜欢运动他N天内会参加M种运动(每种运动用一个[1,m]的整数表示)舍友有Q个问题问昊昊第l天到第r天参加了多少种不同的运动原创 2016-01-18 15:30:21 · 492 阅读 · 0 评论 -
蛇形填数
在n*n方阵里填入1,2,..........,n*n,要求填成蛇形。例如n=4时方阵为: 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4代码如下:#include#includeusing namespace std;#define MAN 100int a[MAN][MAN];int main()原创 2015-12-21 11:40:47 · 384 阅读 · 0 评论 -
Light oj--1100
DescriptionGiven an array with n integers, and you are given two indices i and j (i ≠ j) in the array. You have to find two integers in the range whose difference is minimum. You have to print thi原创 2015-12-07 22:05:48 · 390 阅读 · 0 评论 -
BUAAOJ--1389
愤怒的DZY【问题描述】“愤怒的小鸟”如今已经是家喻户晓的游戏了,机智的WJC最近发明了一个类似的新游戏:“愤怒的DZY”。游戏是这样的:玩家有K个DZY,和N个位于不同的整数位置:X1,X2,…,XN的干草包。每一个DZY都可以站在某个位置:X 扔炸弹,扔完炸弹,这个DZY就会挂掉。扔炸弹的半径为R(且每次每个DZY扔炸弹的半径不变,都是R,而站的位置X可以改变),破坏范围为的X−R~X原创 2016-02-01 22:56:01 · 734 阅读 · 0 评论 -
UVA--1211(二分+前缀和)
D - 幸福呢。Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3061DescriptionA sequence of N positive integers (10 < N < 100 00原创 2016-03-05 16:50:41 · 485 阅读 · 0 评论 -
bzoj 2456
modeTime Limit:1000MS Memory Limit:1024KB 64bit IO Format:%lld & %lluSubmit StatusDescription给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。Input第1行一个正整数n。第原创 2016-03-17 16:15:28 · 387 阅读 · 0 评论 -
CF--368B
Sereja and SuffixesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionSereja has an array a, consisting of n integers a1, a2, ...,原创 2016-03-30 16:05:06 · 452 阅读 · 0 评论 -
nyoj305
表达式求值时间限制:3000 ms | 内存限制:65535 KB难度:3描述Dr.Kong设计的机器人卡多掌握了加减法运算以后,最近又学会了一些简单的函数求值,比如,它知道函数min(20,23)的值是20 ,add(10,98) 的值是108等等。经过训练,Dr.Kong设计的机器人卡多甚至会计算一种嵌套的更复杂的表达式。假设表达式可以简单定原创 2016-03-31 17:01:44 · 454 阅读 · 0 评论 -
Codeforces A. Orchestra
OrchestraTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 635ADescriptionPaul is at the orchestra. The string section原创 2016-03-08 16:27:54 · 438 阅读 · 0 评论 -
CodeForces 634A
Island PuzzleTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 634ADescriptionA remote island chain contains n islands,原创 2016-03-08 18:05:18 · 556 阅读 · 0 评论 -
CodeForces 633A
Ebony and IvoryTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 633ADescriptionDante is engaged in a fight with "The S原创 2016-03-09 15:44:42 · 810 阅读 · 0 评论 -
★CF--552C
C. Vanya and Scalestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVanya has a scales for weighing loads an原创 2016-04-21 19:38:54 · 1153 阅读 · 0 评论