- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 ZOJ 1151 - Word Reversal
Word Reversal Time Limit: 2 Seconds Memory Limit: 65536 KB For each list of words, output a line with each word reversed without changing the order of th...
2019-01-30 18:46:07 162
原创 UVA 536 - Tree Recovery ( 二叉树 )
Description Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes. This is an example of one o...
2019-01-29 13:06:38 621 1
原创 POJ 3624 - Charm Bracelet( 01背包 )
Charm Bracelet Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 48555 Accepted: 20584 Description Bessie has gone to the mall's jewe...
2019-01-26 13:13:47 185
原创 POJ 3009 - Curling 2.0 ( DFS )
Curling 2.0 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 27947 Accepted: 11108 Description On Planet MM-21, after their Olymp...
2019-01-26 12:22:07 186
原创 POJ 2524 - Ubiquitous Religions( 并查集 )
Ubiquitous Religions Description There are so many different religions in the world today that it is difficult to kee...
2019-01-23 15:24:13 146
原创 ZOJ 2412 - Farm Irrigation ( dfs )
Farm Irrigation Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are ...
2019-01-20 12:44:58 128
原创 UVA 673 - Parentheses Balance (栈)
You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a) if it is the empty string (b) if A and B are correct, AB is correct, (c) if A ...
2019-01-19 14:51:10 170
原创 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 each square of a given set of n squares on a chessbo...
2019-01-18 17:19:00 180
原创 POJ 1659 - Frogs' Neighborhood (havel 判断可图化)
未名湖附近共有N个大小湖泊L1, L2, ..., Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤ i ≤ N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻居数目x1, x2, ..., xn,请你给出每两个湖泊之间的相连关系。 Input 第一行是测试数据的组数T(0 ≤ T ≤ 20)。每组数据包括两行,第一行是整数N(2 < ...
2019-01-17 15:39:58 866
原创 递增三元组——第九届蓝桥杯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 【输入格式】 第一行包含一个整数N。 第二行包含N个整数A1, A2, ... AN。 第三行包含N个整数...
2019-01-02 16:38:02 417
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人