今天没有新动态
@kidultff

MySQL生成随机数

使用如下SQL中RAND函数即可生成 i ≤ R ≤ j 随机数:FLOOR(i + RAND() * (j – i + 1))在SQL命令行中输入:SELECT FLOOR(7 + (RAND() * 6));可以生成 7-12 (包括7和12)的正整数在 ...
  • 0
  • 0
@kidultff

PAT-A 真题 – 1073 Scientific Notation

Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-][0-9]+ which means that the integer portion has exactly one d ...
  • 0
  • 0
@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