07 2017 档案
摘要:最近改自己的错误代码改到要上天,心累。 这是迄今为止写的最心累的博客。 Prime Distance Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 18707 Accepted: 4998 Description The bra
阅读全文
摘要:B. New Skateboard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. New Skateboard time
阅读全文
摘要:D. Time to go back time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Time to go back tim
阅读全文
摘要:C. Palindrome Again !! time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output C. Palindrome Again
阅读全文
摘要:B. New Job time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output B. New Job time limit per test
阅读全文
摘要:哈哈哈哈哈哈哈,最近一直在补题,改各种错误的代码,wa了20多遍,改到心态爆炸,改好之后,感觉世界都美好了(叉会腰~)。。。 A. Who is the winner? time limit per test 1 second memory limit per test 64 megabytes i
阅读全文
摘要:itoa()函数 itoa 为c语言的一个函数。itoa 函数是一个广泛应用的,从非标准扩展到标准的C语言。它不能被移植,因为它不是标准定义下的C语言,但是,编译器通常在一个不遵循程式标准的模式下允许其通过header ,因为它是一个从逻辑对应到标准库的函数。itoa 取整数输入值,并将其转换为相应
阅读全文
摘要:Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 47876 Accepted: 20346 Description Bessie has gone to the mall's jewelry stor
阅读全文
摘要:Anniversary party Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11419 Accepted: 6582 Description There is going to be a party to celebrat
阅读全文
摘要:Bone Collector Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 85530 Accepted Submission(s): 3538
阅读全文
摘要:饭卡 Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 43147 Accepted Submission(s): 14772 Problem De
阅读全文
摘要:Big Event in HDU Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 51519 Accepted Submission(s): 1
阅读全文
摘要:先认错,学长们很早之前就讲过了,然而我现在才来写。。。 01背包 01背包是在M件物品取出若干件放在空间为W的背包里,每件物品的体积为W1,W2……Wn,与之相对应的价值为P1,P2……Pn。 01背包题目的雏形是: 有N件物品和一个容量为V的背包。第i件物品的费用是c[i],价值是w[i]。求解将
阅读全文
摘要:引爆炸弹 在一个 n×m的方格地图上,某些方格上放置着炸弹。手动引爆一个炸弹以后,炸弹会把炸弹所在的行和列上的所有炸弹引爆,被引爆的炸弹又能引爆其他炸弹,这样连锁下去。 现在为了引爆地图上的所有炸弹,需要手动引爆其中一些炸弹,为了把危险程度降到最低,请算出最少手动引爆多少个炸弹可以把地图上的所有炸弹
阅读全文
摘要:杨辉三角 杨辉三角,是二项式系数在三角形中的一种几何排列。在欧洲,这个表叫做帕斯卡三角形。帕斯卡(1623 1662)是在1654年发现这一规律的,比杨辉要迟393年,比贾宪迟600年。 排列信息: 杨辉三角有多种重要的性质。 概述: 前提:每行端点与结尾的数为1. 每个数等于它上方两数之和。 每行
阅读全文
摘要:And Then There Was One Time limit: 3.000 seconds Let’s play a stone removing game. Initially, n stones are arranged on a circle and numbered 1,...,n c
阅读全文
摘要:喷水装置(一) 时间限制:3000 ms | 内存限制:65535 KB 难度:3 题意也是浇水,不过这个题浇水装置的位置没有确定,所以比上面的那道题水,而且精度上也没啥要求。 唯一让我感觉神奇的就是我定义的1000的数组竟然RuntimeError了!? 把数组定义到main函数前面(宏定义)就可
阅读全文
摘要:10382 - Watering Grass Time limit: 3.000 seconds n sprinklers are installed in a horizontal strip of grass l meters long and w meters wide. Each sprin
阅读全文
摘要:Clarke and problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1292 Accepted Submission(s): 5
阅读全文
摘要:The Triangle Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 50122 Accepted: 30285 Description 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1
阅读全文
摘要:免费馅饼 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 64677 Accepted Submission(s): 22761 Problem
阅读全文
摘要:Common Subsequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39661 Accepted Submission(s):
阅读全文
摘要:Building designing Time limit: 3.000 seconds An architect wants to design a very high building. The building will consist of some floors, and each floor
阅读全文
摘要:Hello World! Time limit: 1.000 seconds When you first made the computer to print the sentence “Hello World!”, you felt so happy, not knowing how comple
阅读全文
摘要:Drainage Ditches Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22789 Accepted Submission(s): 10
阅读全文
摘要:最短路 Time Limit: 3000/1000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的T-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却
阅读全文
摘要:哈密顿绕行世界问题 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7419 Accepted Submission(s): 4403 Probl
阅读全文
摘要:Guilty Prince Memory Limit: 32 MB Once there was a king named Akbar. He had a son named Shahjahan. For an unforgivable reason the king wanted him to l
阅读全文
摘要:C. Socks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Socks time limit per test 2
阅读全文
摘要:wtmsb Time Limit: 1000/100MS (Java/Others) Memory Limit: 131072/131072KB (Java/Others) 这天,AutSky_JadeKAutSky_JadeK 看到了n张图片,他忍不住说道:“我TM 社保!”。每张图片有一个社保值
阅读全文
摘要:Sqrt Bo Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2222 Accepted Submission(s): 883 Proble
阅读全文
摘要:备忘。 差分数组: 区间更新查询有很多方法,线段树、树状数组等都可以。如果为离线查询,就可以考虑使用差分数组。 假设对于区间[l,r]的每个数都加1,我们用一个数组a来记录,a[l]+=1;a[r+1]-=1; 然后使用一个数组ans来记录数组a的前缀和,ans[i]=ans[i-1]+a[i];a
阅读全文
摘要:I Hate It Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 76994 Accepted Submission(s): 29632 Pro
阅读全文
摘要:Super-palindrome 题面地址:http://acm.hdu.edu.cn/downloads/CCPC2018-Hangzhou-ProblemSet.pdf 这道题是差分数组的题目,线段树也可以写,但是代码太长没必要。 代码:
阅读全文
摘要:Balanced Lineup Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 53721 Accepted: 25244 Case Time Limit: 2000MS Description For the daily mil
阅读全文
摘要:A. Who is the winner? time limit per test 1 second memory limit per test 64 megabytes input standard input output standard output A. Who is the winner
阅读全文
摘要:又见GCD Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19327 Accepted Submission(s): 8044 Problem
阅读全文
摘要:Cup Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8946 Accepted Submission(s): 2747 Problem Des
阅读全文
摘要:Sort it Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4679 Accepted Submission(s): 3250 Problem
阅读全文
摘要:逃离迷宫 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27258 Accepted Submission(s): 6661 Problem D
阅读全文
摘要:#1498 : Diligent Robots Time Limit:10000ms Case Time Limit:1000ms Memory Limit:256MB Description There are N jobs to be finished. It takes a robot 1 h
阅读全文
摘要:Babelfish Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 44545 Accepted: 18803 Description You have just moved from Waterloo to a big city
阅读全文
摘要:B. Hamming Distance Sum time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Genos needs your
阅读全文
摘要:A. Saitama Destroys Hotel time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Saitama Dest
阅读全文
摘要:sscanf 读取格式化的字符串中的数据。 swscanf 是 sscanf 的宽字符版本;swscanf 的参数是宽字符串。 sscanf不处理多字节的十六进制字符。swscanf不处理 Unicode 全角十六进制或"兼容性区"字符。 除此以外,swscanf 和 sscanf 的行为完全相同。
阅读全文
摘要:11461 - Square Numbers Time limit: 1.000 seconds A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are s
阅读全文
摘要:12050 - Palindrome Numbers Time limit: 3.000 seconds A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example,
阅读全文
摘要:10339 - Watching Watches Time limit: 3.000 seconds It has been said that a watch that is stopped keeps better time than one that loses 1 second per da
阅读全文
摘要:substr()函数: VFP字符函数的一种。表示的是字符型函数。格式是:SUBSTR(<字符表达式>、<数值表达式1>[,<数值表达式2>] 中文名:子串截取函数 外文名:SUBSTR 返回值类型:字符型 SUBSTR(cExpression,nStartPosition [,nCharacter
阅读全文
摘要:曼哈顿距离: 是由十九世纪的赫尔曼·闵可夫斯基所创词汇 ,是种使用在几何度量空间的几何学用语,用以标明两个点在标准坐标系上的绝对轴距总和。 曼哈顿距离——两点在南北方向上的距离加上在东西方向上的距离,即d(i,j)=|xi-xj|+|yi-yj|。 对于一个具有正南正北、正东正西方向规则布局的城镇街
阅读全文
摘要:C. Watchmen time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Watchmen are in a danger and
阅读全文
摘要:B. Beautiful Paintings time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Beautiful Paint
阅读全文
摘要:A. Joysticks time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Friends are going to play co
阅读全文
摘要:C. Tourist's Notes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Tourist's Notes ti
阅读全文
摘要:B. Quasi Binary time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Quasi Binary time lim
阅读全文
摘要:A. Cutting Banner time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Cutting Banner time
阅读全文
摘要:C. Block Towers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Students in a class are
阅读全文
摘要:B. Cards time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Cards time limit per test 2
阅读全文
摘要:A. Robot Sequence time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Calvin the robot lies
阅读全文