第9章 正则表达式搜索 like中匹配整个字段,regexp匹配出现的内容即可检索 ?匹配他前面的任何字符0-1次 [[:digit:]]{4} 匹配连在一起的任意4位数字。解释:[:digit:]{4}任意一个数字重复 4次,如1111;[[:digit:]]{4}表示4个[:digit:] 第1 ...
分类:
数据库 时间:
2018-05-11 15:31:33
阅读次数:
194
暴力可做!!!(十秒还不打暴力!!!)暴力算阶乘边算边取余上代码 ...
分类:
其他好文 时间:
2018-05-10 21:48:38
阅读次数:
156
[抄题]: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is ...
分类:
其他好文 时间:
2018-05-01 17:47:28
阅读次数:
127
分为10位数字(ten digit)和13位(thirteen digit)数字 1. Unix, Python为10 2. JavaScript为13位 ...
分类:
其他好文 时间:
2018-04-29 23:57:02
阅读次数:
331
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:
其他好文 时间:
2018-04-29 23:17:21
阅读次数:
247
Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2018-04-29 22:17:27
阅读次数:
262
题意: 定义S(N) 为数字N每个位上数字的和。 在给两个数a,b,求最小的正整数n,使得 a×S(n)=b×S(2n)。 分析: 为我们要找到满足 a S(n) = b S(2n) 的最小的n的值,首先第一个想法肯定暴力啊..但是暴力肯定不对啊... 比如 2 3 输出5589 也就是说从整体(一 ...
分类:
其他好文 时间:
2018-04-29 20:33:19
阅读次数:
136
题目描述 A multi-digit column addition is a formula on adding two integers written like this: A multi-digit column addition is written on the blackboard, ...
分类:
其他好文 时间:
2018-04-21 17:30:33
阅读次数:
205
Leftmost Digit Leftmost Digit Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 给定一个正整数N,你应该输出N ^ N的最左边 ...
分类:
其他好文 时间:
2018-04-19 20:27:07
阅读次数:
162
/** 数字金额大写转换(可以处理整数,小数,负数) */ function smalltoBIG(n) { var fraction = ['角', '分']; var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; var ...
分类:
其他好文 时间:
2018-04-19 14:56:21
阅读次数:
124