Source: PAT A1148 Werewolf - Simple Version (20 分) Description: Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the wer ...
分类:
其他好文 时间:
2019-05-28 22:21:53
阅读次数:
140
2.1 Include Syntax Both user and system header files are included using the preprocessing directive ‘#include’. It has two variants: This variant is u ...
分类:
其他好文 时间:
2019-05-28 16:55:05
阅读次数:
136
Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers ...
分类:
编程语言 时间:
2019-05-27 13:24:21
阅读次数:
125
1.Algorithm https://leetcode-cn.com/problems/merge-two-sorted-lists/ 方法 1:递归 想法 我们可以如下递归地定义在两个链表里的 merge 操作(忽略边界情况,比如空链表等): \left\{ \begin{array}{ll} ...
分类:
其他好文 时间:
2019-05-26 19:52:25
阅读次数:
150
72. Edit Distance 0. 参考文献 | 序号 | 文献 | | | | | 1 | "LeetCode 72. Edit Distance 最短字符串编辑距离 动态规划" | 1.题目 Given two words word1 and word2 , find the minimu ...
分类:
其他好文 时间:
2019-05-26 17:48:50
阅读次数:
96
Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such th ...
分类:
其他好文 时间:
2019-05-26 09:45:18
阅读次数:
99
结果为: 上面执行的代码可以看到两个经典的cssbug: father-box :黑色盒子;son-box:绿色盒子;brother-two:黄色盒子 1、margin合并 黑色 和 黄色的盒子 都设置了 margin:20px, 按理说黑色和黄色的垂直间距是40px, 但是事实是20px, 这就是 ...
分类:
其他好文 时间:
2019-05-26 00:13:44
阅读次数:
140
Source: PAT A1132 Cut Integer (20 分) Description: Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long int ...
分类:
其他好文 时间:
2019-05-24 22:26:05
阅读次数:
138
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum pro ...
分类:
其他好文 时间:
2019-05-24 18:45:09
阅读次数:
116
题目链接:http://poj.org/problem?id=3468 You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to ...
分类:
其他好文 时间:
2019-05-23 20:52:51
阅读次数:
130