![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HPU ACM
文章平均质量分 80
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
hpuacm 第一次省赛选拔
The world famous scientist Innokentiy has just synthesized the potion of immortality. Unfortunately, he put the flask with this potion on the shelf where most dangerous poisons of all time were ke原创 2017-03-20 17:59:34 · 660 阅读 · 0 评论 -
HPU 1192
Welcome To HPU Online Judge!1192: Sequence [组合数学]时间限制: 3 Sec 内存限制: 128 MB提交: 160 解决: 62 题目描述在某个夜黑月高的晚上,!!!,原谅我编不下去了。很美吧?放松之后,继续做题吧。HS(Handsome)的Ocean在纸上写下N个整数,Ocean把它定义原创 2017-12-02 16:43:01 · 345 阅读 · 0 评论 -
HPU 1007 严格递增连续子段 [模拟]
1007: 严格递增连续子段 [模拟]时间限制: 1 Sec 内存限制: 128 MB提交: 150 解决: 12 题目描述给定一个有N个正整数组成的序列,你最多可以改变其中一个元素,可以修改为任意的整数。问可以得到的严格递增连续子段的最大长度。输入第一行输入一个整数T,代表有T组测试数据。每组数据占两行,第一行输入一个整数N原创 2017-10-21 10:21:51 · 511 阅读 · 0 评论 -
C - Maximum of Maximums of Minimums
You are given an array a1, a2, ..., an consisting ofn integers, and an integer k. You have to split the array into exactly k non-empty subsegments. You'll then compute the minimum integer on eac原创 2017-10-27 21:08:50 · 563 阅读 · 0 评论 -
E - Matrix Power Series
E - Matrix Power SeriesTime Limit:3000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 3233DescriptionGiven a n × n matrix A and a posit原创 2017-08-23 08:54:47 · 268 阅读 · 0 评论 -
1409: Watch Dog [最小生成树]
1409: Watch Dog [最小生成树]时间限制: 1 Sec 内存限制: 128 MB提交: 125 解决: 37 统计题目描述在2050年某城市,一个神秘组织通过一种名叫ctOS的控制系统掌控了全城所有人的联网设备(手机、电脑、监控、交通信号灯,甚至是银行警察局的安保系统),该系统通过很多遍布城市各地的基站来完成对电子设备的控制。Aiden Pea原创 2017-08-12 18:08:03 · 1147 阅读 · 0 评论 -
1410: QAQ & 火星情报局 [数学]
1410: QAQ & 火星情报局 [数学]时间限制: 1 Sec 内存限制: 128 MB提交: 309 解决: 61 统计题目描述QAQ~超级喜欢看火星情报局,每周六都是他一周中最期待的一天,QAQ喜欢和自己一样心愿是“世界和平”的薛之谦,喜欢“一言不合就飙车”的宇哥,喜欢“再扯的提案都能升华为鸡汤”的汪涵局长....当然也喜欢的里面各种各样奇葩有趣的提原创 2017-08-12 18:06:25 · 530 阅读 · 1 评论 -
1413: StarFarming [最短路]
1413: StarFarming [最短路]时间限制: 1 Sec 内存限制: 128 MB提交: 429 解决: 68 统计题目描述星农(StarFarming)公司计划要给员工发路费津贴,发放的规则是这样的:1到n-1代表各个员工家的序号,n代表公司。路费津贴只发给上班的最短路与回家的最短路的总路程最长的人。该市的路建造的有些奇怪,修路只修单行道,即只允许原创 2017-08-12 17:57:09 · 405 阅读 · 0 评论 -
D - 畅通工程
省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。Input 测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( 行对应村庄间道路的成本,每行给出一对正整原创 2017-08-03 23:31:00 · 383 阅读 · 0 评论 -
C - Networking
You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible routes for the cables that may connect pairs of p原创 2017-08-03 23:28:05 · 294 阅读 · 0 评论 -
B - Highways
The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're pla原创 2017-08-03 23:21:55 · 257 阅读 · 0 评论 -
C - 线代
C - 线代Time Limit:10000MS Memory Limit:131072KB 64bit IO Format:%lld & %lluSubmit Status Practice HPU 1183Description学过线性代数后,Ocean又有了新的难题。 现在Ocean有两个矩阵$A$和$B$,大小分别为$n *原创 2017-08-16 20:27:28 · 401 阅读 · 0 评论 -
K - *Restoring Painting(思维)
Vasya works as a watchman in the gallery. Unfortunately, one of the most expensive paintings was stolen while he was on duty. He doesn't want to be fired, so he has to quickly restore the painting. He原创 2017-07-21 18:42:36 · 265 阅读 · 0 评论 -
J - *Wet Shark and Bishops(思维)
Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are numbered from top to bottom, while columns are numbered from left原创 2017-07-21 18:33:06 · 290 阅读 · 0 评论 -
LIGHT OJ 1141 1141 - Number Transformation
1141 - Number Transformation PDF (English)StatisticsForumTime Limit: 2 second(s)Memory Limit: 32 MBIn this problem, you are given an integer原创 2017-04-05 22:33:49 · 259 阅读 · 0 评论 -
HPUACM 省赛B
Two boys Gena and Petya wrote on two strips of paper the same string s that consisted of lowercase Latin letters. Then each boy took one strip, cut it into small pieces so that each piece contained原创 2017-03-20 22:42:37 · 411 阅读 · 0 评论 -
HPUACM第二十周周练 I
年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要5000金币就行了。"探险家就跑到大祭司那里,向他要求皮袄或水晶球,大祭司要他用金币来换,或者替他弄来其他的东西,原创 2018-01-19 12:02:39 · 224 阅读 · 0 评论