题目描述 Aoki loves numerical sequences and trees.One day, Takahashi gave him an integer sequence of length N, a1,a2,…,aN, which made him want to construc ...
分类:
其他好文 时间:
2018-04-12 23:57:52
阅读次数:
391
题目描述 The Fibonacci sequence is a sequence of integers, called Fibonacci numbers, defined as follows: Fib0=0,Fib1=1,Fibn=Fibn?2+Fibn?1 for n>1Fib_{0}=0 ...
分类:
其他好文 时间:
2018-04-12 22:26:22
阅读次数:
193
“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于PAT的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。 得到“答案正确”的条件是: 1. 字符串中必须仅有P, A, T这三种字符,不可以包含其它字符;2. 任意形如 xPATx 的字符 ...
分类:
其他好文 时间:
2018-04-12 13:41:05
阅读次数:
212
第一章 Pass 第二章 ECMAScript 中array的意思 以及用法 对象(obj、[]、{}、null)中[]、{}的意思 节点的具体意义 (getElementById、childNodes、appendChild、 innerHTML)的具体意义 cookies alert 布尔类型b ...
分类:
编程语言 时间:
2018-04-11 23:05:38
阅读次数:
216
1. 用正则表达式判定邮箱是否输入正确。 2. 用正则表达式识别出全部电话号码。 3. 用正则表达式进行英文分词。re.split('',news) 4. 使用正则表达式取得新闻编号 5. 生成点击次数的Request URL 6. 获取点击次数 7. 将456步骤定义成一个函数 def getCl ...
分类:
其他好文 时间:
2018-04-11 20:25:07
阅读次数:
186
数据库的事务保证: 1、先记日志,记录好日志后,并写入磁盘(不怕各种异常)假如在执行过程中出了问题,就按照日志进行各种后续的操作 数据库的2PC(两阶段提交) XA Transactions 2、分布式事务、 两阶段提交 2pc 3、把分布式事务 -变为本地事务 + 消息记录 缺点: 消息表会耦合到 ...
分类:
其他好文 时间:
2018-04-11 15:50:49
阅读次数:
178
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N ...
分类:
其他好文 时间:
2018-04-11 15:48:20
阅读次数:
152
HTML 标题 HTML 标题(Heading)是通过<h1> - <h6> 标签来定义的. <h1>这是一个标题</h1> <h2>这是一个标题</h2> <h3>这是一个标题</h3> HTML 段落 HTML 段落是通过标签 <p> 来定义的. <p>这是一个段落。</p> <p>这是另外一个 ...
分类:
Web程序 时间:
2018-04-11 15:38:26
阅读次数:
174
What are you doing at the end of the world? Are you busy? Will you save us? Nephren is playing a game with little leprechauns. She gives them an infin ...
分类:
其他好文 时间:
2018-04-10 15:05:33
阅读次数:
193
``` This is a primary alert with an example link. Give it a click if you like. This is a secondary alert with an example link. Give it a click if you ... ...
分类:
其他好文 时间:
2018-04-09 21:14:12
阅读次数:
177