2018年10月的全部文章
@kidultff

## 使用HighlightJS高亮UEditor代码段

0x00、环境UEditor默认的代码片段格式为<pre class="brush:[代码语言];">...代码片段...</pre>现在由于更换新的前端环境，由于某种原因要去使用HighlightJS，hljs在高亮处理时，匹配的代码片段格式为<pre><co ...
• 0
• 0
@kidultff

## PAT-A 真题 – 1096 Consecutive Factors

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are the three consecutive numbers. Now given any positive N, you are suppo ...
• 0
• 0
@kidultff

## PAT-A 真题 – 1044 Shopping in Mars

Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M\$). When making the payment, the chain can be cut at any position for only once and some of the ...
• 0
• 0
@kidultff

## PAT-A 真题 – 1100 Mars Numbers

People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars.The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, may, jun, jly, aug, sep, oct, nov, dec" on Mars, respectively. ...
• 0
• 0
@kidultff

## PAT-A 真题 – 1108 Finding Average

The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number i ...
• 0
• 0