Fork me on GitHub

POJ2386

Description

Due to recent rains, water has pooled in various places in Farmer John’s field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square contains either water (‘W’) or dry land (‘.’). Farmer John would like to figure out how many ponds ave formed in his field. A pond is a connected set of squares with water in them, where a square is

Distinct Subsequences

Description:
Given a string S and a string T, count the number of distinct subsequences of T in S.

A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie, “ACE” is a subsequence of “ABCDE” while “AEC” is not).

POJ1006

Description
Some people believe that there are three cycles in a person’s life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively. There is one peak in each period of a cycle. At the peak of a cycle, a person performs at his or her best in the corresponding field (physical, emotional or mental).

Hexo Optimization

  1. 本地无法打开网页

      第一次用hexo写文章,按章教程部署好之后,执行hexo server却发现无法打开本地网页。经排查,不是浏览器自身的问题。
      git bush执行hexo s没有任何异常,但是127.0.0.1:4000就是打不开。经百度后发现大家也遇到过同样的问题,难道端口被占用了?。关闭hexo s命令并执行netstat -ano,发现默认的端口4000果然被占用了,而且查出来端口是被一个叫做FoxitPortect.exe的进程给占用了。