- 博客(7)
- 收藏
- 关注
原创 用 Python 给文件改名字——————Python
因为需要给一些文件重命名一下,而且文件比较多,所以命名的时候想到了用py,我需要解决的问题是这样子的文件基本上一至文件名是给定的文件和文件名没有映射关系要求在给定路径下的文件命名代码如下:code:import osname1 = []name2 = []i=0path = ( r'C:\Users\Administrator\Desktop\第三季第一期\a')...
2018-12-25 21:11:53 5186
原创 Codeforces1092C. Prefixes and Suffixes——————思维,字符串
C. Prefixes and SuffixesIvan wants to play a game with you. He picked some string s of length n consisting only of lowercase Latin letters.You don’t know this string. Ivan has informed you about all...
2018-12-21 16:42:20 1269 1
原创 排序总结——————数据结构
文章目录八中排序方式的对比数据生成排序算法性能比较运行时间比较(ms)移动次数比较交换次数比较八中排序方式的对比数据生成我采用随机函数来生成随机数据,将生成的数据保存在.txt文件里生成的数据大小范围在  [0,n]  \; [0,n]\;[0,n]内,生成的数据完全是随机的其中 n=103,104,105,106n = 10^3,...
2018-12-21 16:24:04 409
原创 Codefoces 977E - Cyclic Components——————dfs
Cyclic ComponentsYou are given an undirected graph consisting of n vertices and m edges. Your task is to find the number of connected components which are cycles.Here are some definitions of graph t...
2018-12-11 19:40:54 305
原创 Codeforces 977D. Divide by three, multiply by two
Divide by three, multiply by twoPolycarp likes to play with numbers. He takes some integer number x, writes it down on the board, and then performs with it n−1 operations of the two kinds:divide the...
2018-12-11 18:27:49 310
原创 Codeforces 997B. Two-gram——————水题复习一下map
这道题就是找给定字符串中的长度为2的连续子串出现的次数str.substr(i,j) 从下标 i 开始,生成长度为 j 的子串 遍历map的时候需要
2018-12-11 16:24:36 386
原创 HDU 6181Two Paths——————(求次短路)
Two PathsTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 153428/153428 K (Java/Others)Total Submission(s): 2139    Accepted Submission(s): 834Pr
2018-12-03 17:14:06 307
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人