
水题or基础训练
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
河南省多校联萌(一) E - E HYSBZ - 1083
城市C是一个非常繁忙的大都市,城市中的道路十分的拥挤,于是市长决定对其中的道路进行改造。城市C的道 路是这样分布的:城市中有n个交叉路口,有些交叉路口之间有道路相连,两个交叉路口之间最多有一条道路相连 接。这些道路是双向的,且把所有的交叉路口直接或间接的连接起来了。每条道路都有一个分值,分值越小表示这 个道路越繁忙,越需要进行改造。但是市政府的资金有限,市长希望进行改原创 2017-07-30 07:56:54 · 221 阅读 · 0 评论 -
D - Integer Divisibility LightOJ - 1078
If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequence of only a digit. Now you are given the number and the only allowable digit, you should report t原创 2017-07-29 11:35:59 · 272 阅读 · 0 评论 -
大吉大利,今晚吃鸡——枪械篇
时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述 在绝地求生(吃鸡)游戏里,不同的枪支有不同的威力,更是可以搭配不同的配件,以提升枪支的性能。 每一把枪都有其威力及其可装备配件种类。每一个配件有其所属种类,可以为枪支提供威力的百分比加成。每原创 2018-01-23 21:52:21 · 867 阅读 · 0 评论 -
nyoj 456 邮票分你一半
邮票分你一半时间限制:1000 ms | 内存限制:65535 KB难度:3描述 小珂最近收集了些邮票,他想把其中的一些给他的好朋友小明。每张邮票上都有分值,他们想把这些邮票分成两份,并且使这两份邮票的分值和相差最小(就是小珂得到的邮票分值和与小明的差值最小),现在每张邮票的分值已经知道了,他们已经分好了,你知道最后他们得到的邮票分值和相差多少吗?输入第一行只有一原创 2018-02-06 17:04:38 · 160 阅读 · 0 评论 -
codeforce 333B chips
Gerald plays the following game. He has a checkered field of size n × n cells, where m various cells are banned. Before the game, he has to put a few chips on some border (but not corner) board cells...原创 2018-02-25 12:45:54 · 435 阅读 · 0 评论 -
Codeforce 957 Div2 A. Tritonic Iridescence
outputstandard outputOverlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas.Arkady has a sufficiently large amount of paint of three colours: cyan...原创 2018-03-27 10:16:20 · 495 阅读 · 0 评论 -
codeforce 962A Equator
A. Equatortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp has created his own training plan to prepare for the programming contests. He w...原创 2018-04-16 21:29:31 · 324 阅读 · 0 评论 -
Minsum Plus
题意简单到令人发指!序列A由N个整数组成,从中选出一个连续的子序列,使得这个子序列的和为正数,且和为所有和大于零的子序列中的最小值.将这个值输出,若无解,输出no solution。输入第一行输入一个正整数N(2<N<50000)第二行输入N个整数输出输出最小的正子段和样例输入复制3-1 2 3样例输出复制1最小正子段和模板#include<cstdio>#inc...原创 2018-05-14 19:23:20 · 194 阅读 · 0 评论 -
B. Treasure Hunt
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the big birthday party, Katie still wanted Shiro to have some more fun. Later, she came up wi...原创 2018-05-15 15:51:47 · 228 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第五场) max
链接:https://www.nowcoder.com/acm/contest/143/G来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述Give two positive integer c, n. You need to find a pair of inte...原创 2018-08-16 13:54:39 · 222 阅读 · 0 评论 -
牛客小白月赛6 字符串丝带
链接:https://www.nowcoder.com/acm/contest/136/D来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 65536K,其他语言131072K64bit IO Format: %lld题目描述 WHZ送给了HtBest一个“字符串丝带”,这条丝带由n个小写字母按照一定的顺序排列组成,HtBest收到新礼物后有许多...原创 2018-08-20 17:13:38 · 220 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) A Cloning Toys
A. Cloning Toystime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp likes his plush toy a lot.Recently, he found a machine tha...原创 2018-09-01 09:22:51 · 195 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) C. Cave Painting
C. Cave Paintingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputImp is watching a documentary about cave painting.Some number...原创 2018-09-01 09:34:35 · 206 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) A. Aramic script
A. Aramic scripttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn Aramic language words can only represent objects.Words in Ar...原创 2018-09-01 18:37:56 · 166 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) B. Mancala
time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMancala is a game famous in the Middle East. It is played on a board that consists ...原创 2018-09-01 18:39:18 · 179 阅读 · 0 评论 -
51Nod1062 序列中最大的数
1062 序列中最大的数题目来源: Ural 1079基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题收藏关注有这样一个序列a:a[0] = 0a[1] = 1a[2i] = a[i]a[2i+1] = a[i] + a[i+1]输入一个数N,求a[0] - a[n]中最大的数。a[0] = 0, a[1] = 1,原创 2017-09-06 23:03:12 · 254 阅读 · 0 评论 -
51nod 1024 矩阵中不重复的元素
1024 矩阵中不重复的元素题目来源: Project Euler基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 收藏 关注一个m*n的矩阵。该矩阵的第一列是a^b,(a+1)^b,.....(a + n - 1)^b第二列是a^(b+1),(a+1)^(b+1),.....(a + n原创 2017-08-09 19:34:16 · 166 阅读 · 0 评论 -
O - IP Checking LightOJ - 1354
An IP address is a 32 bit address formatted in the following way a.b.c.d where a, b, c, d are integers each ranging from 0 to 255. Now you are given two IP addresses, first one in decima原创 2017-08-03 22:43:39 · 274 阅读 · 0 评论 -
C - Smith Numbers POJ - 1142
While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh University,noticed that the telephone number of his brother-in-law H. Smith had the following peculiar property:原创 2017-07-26 19:58:00 · 321 阅读 · 0 评论 -
A - 还是畅通工程
某省调查乡村交通状况,得到的统计表中列出了任意两村庄间的距离。省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可),并要求铺设的公路总长度为最小。请计算最小的公路总长度。Input 测试输入包含若干测试用例。每个测试用例的第1行给出村庄数目N ( 当N为0时,输入结束,该用例不被处理。Output原创 2017-08-03 23:09:49 · 211 阅读 · 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 · 282 阅读 · 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 · 322 阅读 · 0 评论 -
D - 畅通工程
省政府“畅通工程”的目标是使全省任何两个村庄间都可以实现公路交通(但不一定有直接的公路相连,只要能间接通过公路可达即可)。经过调查评估,得到的统计表中列出了有可能建设公路的若干条道路的成本。现请你编写程序,计算出全省畅通需要的最低成本。Input 测试输入包含若干测试用例。每个测试用例的第1行给出评估的道路条数 N、村庄数目M ( 行对应村庄间道路的成本,每行给出一对正整原创 2017-08-03 23:31:00 · 416 阅读 · 0 评论 -
F - 畅通工程再续
相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。当然,为了节省资金,只要求实现任意2个小原创 2017-08-03 23:45:42 · 217 阅读 · 0 评论 -
G - Agri-Net
Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high s原创 2017-08-03 23:50:21 · 227 阅读 · 0 评论 -
A - Fibsieve`s Fantabulous Birthday LightOJ - 1008
Fibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts there was an N x原创 2017-07-29 11:21:10 · 319 阅读 · 0 评论 -
C - A Childhood Game LightOJ - 1020
Alice and Bob are playing a game with marbles; you may have played this game in childhood. The game is playing by alternating turns. In each turn a player can take exactly one or two marbles.Both Al原创 2017-07-29 11:29:23 · 313 阅读 · 0 评论 -
E - Ekka Dokka LightOJ - 1116
Ekka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to share the cake after buying it. As the name suggested that Ekka is very fond of odd numbers and Dokka原创 2017-07-29 11:41:08 · 270 阅读 · 0 评论 -
F - Mad Counting LightOJ - 1148
Mob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population of the town. Now the naive approach to this problem will be counting people one by one. But as we a原创 2017-07-29 11:54:09 · 316 阅读 · 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 · 294 阅读 · 0 评论 -
Codeforces Round #478 (Div. 2) C. Valhalla Siege
C. Valhalla Siegetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIvar the Boneless is a great leader. He is trying to capture Ka...原创 2018-09-01 18:41:04 · 258 阅读 · 0 评论