Grigory loves strings. Recently he found a metal strip on a loft. The strip had length n and consisted of letters "V" and "K". Unfortunately, rust has ...
分类:
其他好文 时间:
2017-08-22 00:28:00
阅读次数:
366
网上关于pexpect的介绍基本都类似于这样http://blog.csdn.net/sdustliyang/article/details/23373485,但是并没有关于下述问题的解释 问题:可以ssh到主机,但是后面执行的命令无法生效 代码如下: 可以看到ssh是成功连接的,但是ls /hom ...
分类:
其他好文 时间:
2017-08-22 00:15:35
阅读次数:
206
LETTERS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 8976 Accepted: 4017 Description A single-player game is played on a rectangular boa ...
分类:
其他好文 时间:
2017-08-21 13:30:34
阅读次数:
177
最近死磕较高难度的题目 深感自己的基本数据结构掌握不够熟练 因此 刷题较慢了些 刷了一道简单的题目涨涨自信 题目:Given a string which consists of lowercase or uppercase letters, find the length of the longe ...
分类:
其他好文 时间:
2017-08-20 21:11:15
阅读次数:
189
import stringimport randomdef gen_psd(length=10): """length is password length""" letters = string.ascii_lowercase + string.digits times = length/len( ...
分类:
编程语言 时间:
2017-08-19 20:03:01
阅读次数:
224
A Text Volume 题面: You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of ...
分类:
其他好文 时间:
2017-08-16 20:19:32
阅读次数:
227
There are two popular keyboard layouts in Berland, they differ only in letters positions. All the other keys are the same. In Berland they use alphabe ...
分类:
其他好文 时间:
2017-08-08 19:38:37
阅读次数:
220
Ivan had string s consisting of small English letters. However, his friend Julia decided to make fun of him and hid the string s. Ivan preferred makin ...
分类:
其他好文 时间:
2017-08-08 17:48:09
阅读次数:
181
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your ...
分类:
其他好文 时间:
2017-08-07 20:41:30
阅读次数:
119
You are given two strings s and t consisting of small Latin letters, string s can also contain '?' characters. Suitability of string s is calculated b ...
分类:
其他好文 时间:
2017-08-06 19:42:20
阅读次数:
397