Error Correct SystemTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 527BDescriptionFord Prefect got ...
分类:
其他好文 时间:
2015-08-30 21:18:24
阅读次数:
180
Vimrc下载地址:https://github.com/amix/vimrc安装方法:gitclonegit://github.com/amix/vimrc.git~/.vim_runtimesh~/.vim_runtime/install_basic_vimrc.sh安装pep8pipinstallpep8插件,放到~/.vim/ftplugin/python/目录下(如果目录没有需要自行创建)打开vim,输入:filetype,..
分类:
编程语言 时间:
2015-08-25 16:59:58
阅读次数:
236
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-08-16 01:59:17
阅读次数:
97
importreadline
importqrcode
fromPILimportImage
importos
defCreate_Qrcode(strings,path,logo=""):
qr=qrcode.QRCode(
version=2,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=6,
border=1,
)
withopen(‘test.txt‘,‘r‘)asfr:
forlinesinfr.readlines():..
分类:
编程语言 时间:
2015-08-13 20:23:56
阅读次数:
285
一、int函数能够 (1)把符合数学格式的数字型字符串转换成整数 (2)把浮点数转换成整数,但是只是简单的取整,而非四舍五入。举例: 1 aa = int("124") #Correct 2 print "aa = ", aa #result=124 3 bb = int(123.45) #...
分类:
编程语言 时间:
2015-08-11 15:57:09
阅读次数:
145
题目Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.The brackets must close in the correct order, “()” and “()[]{}” are all valid but...
分类:
其他好文 时间:
2015-08-09 17:11:15
阅读次数:
102
染色有三个条件:对于每个点来说要么不染色,要么染红色,要么染蓝色对于每对配对的括号来说,有且只有一个一边的括号被染色相邻的括号不能染成相同的颜色首先可以根据给出的括号序列计算出括号的配对情况,具体来说就是第i个括号与R[i]个括号配对。对于一个正规配对括号序列(correct bracket seq...
分类:
其他好文 时间:
2015-08-02 23:04:01
阅读次数:
211
Problem Statement
Bear Limak was chilling in the forest when he suddenly found a computer program. The program was a correct implementation of MergeSort. Below you can find the program in ...
分类:
编程语言 时间:
2015-08-02 21:45:31
阅读次数:
181
My initial thought was recursive (a op b) evaluation, which doesn't work quite well.The correct way is to split by op. And, we can cache calculaton re...
分类:
其他好文 时间:
2015-08-01 14:12:44
阅读次数:
101
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-07-29 22:45:22
阅读次数:
142