wanide
wanide
全部文章
分类
2018蓝桥杯(7)
C语言(77)
dp(3)
hdu(3)
Java(13)
KMP(1)
POJ(3)
字符串(2)
并查集(2)
数据结构(5)
最小生成树(2)
最短路(5)
未归档(100)
深度优先搜索/广度优先搜索(4)
贪心(1)
归档
标签
去牛客网
登录
/
注册
仙女的博客
面朝大海,然后春暖花开
全部文章
(共228篇)
UVA 439 - Knight Moves (bfs)
A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits ea...
2019-01-18
0
650
POJ 1659 - Frogs' Neighborhood (havel 判断可图化)
未名湖附近共有N个大小湖泊L1, L2, ..., Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤ i ≤ N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻居数目x1, x2, ..., xn,请你给出每两个湖泊之间的相连关系。 Input ...
2019-01-17
0
674
递增三元组——第九届蓝桥杯C语言B组(省赛)第六题
给定三个整数数组 A = [A1, A2, … AN], B = [B1, B2, … BN], C = [C1, C2, … CN], 请你统计有多少个三元组(i, j, k) 满足: 1. 1 <= i, j, k <= N 2. Ai < Bj < Ck 【输入...
2019-01-02
0
513
乘积尾零——第九届蓝桥杯C语言B组(省赛)第三题
题目: 如下的10行数据,每行有10个整数,请你求出它们的乘积的末尾有多少个零? 5650 4542 3554 473 946 4114 3871 9073 90 4329 2758 7949 6113 5659 5245 7432 3051 4434 6704 3594 9937 1173 6...
2018-12-27
0
538
2017Nowcoder Girl初赛 - D题 - 打车
链接:https://ac.nowcoder.com/acm/contest/315/D 来源:牛客网 题目描述 妞妞参加完Google Girl Hackathon之后,打车回到了牛家庄。 妞妞需要支付给出租车司机车费s元。妞妞身上一共有n个硬币,第i个硬币价值为p[i]元。 妞妞想选...
2018-12-26
0
452
明码——第九届蓝桥杯C语言B组(省赛)第二题
汉字的字形存在于字库中,即便在今天,16点阵的字库也仍然使用广泛。 16点阵的字库把每个汉字看成是16x16个像素信息。并把这些信息记录在字节中。 一个字节可以存储8位信息,用32个字节就可以存一个汉字的字形了。 把每个字节转为2进制表示,1表示墨迹,0表示底色。每行2个字节, 一共16行,布局是...
2018-12-21
0
554
HDU 1595 - find the longest of the shortest(枚举+最短路(dijkstra))
Problem Description Marica is very angry with Mirko because he found a new girlfriend and she seeks revenge.Since she doesn't live in the same city, ...
2018-12-10
0
478
sort函数的用法
使用: 1、sort函数可以两个参数也可以三个参数,必须的c++头文件#include < algorithm>和using namespace std; 2、它使用的排序方法是类似于快排的方法,时间复杂度为n*log2(n) 3、Sort函数有三个参数:(第三个参数可以不写) (...
2018-12-08
0
519
HDU 1050 - Moving Tables (贪心)
Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor...
2018-12-08
0
620
HDU 1051 - Wooden Sticks(贪心)
Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodwor...
2018-12-08
0
621
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页