
OJ
Daria·Saira
这个作者很懒,什么都没留下…
展开
-
02
#include<stdio.h>#include<stdlib.h>typedef struct{ int maxsum; int first; int end;}form;form online(int list[],int n){ form out; int nowsum=0; int i=0; int maxsum=-1; //two f...原创 2019-05-26 17:40:33 · 109 阅读 · 0 评论 -
struct_Tree(3)_20190529
struct_Tree(3)_practicequestion : how to distinguish if it’s the same binary search treesolutionmethod 3 : build a search treenotice : flag=1 --> just reading the remaining numbers...原创 2019-05-29 21:26:49 · 237 阅读 · 0 评论 -
Python_File and data formatting_practice190614
conclusionformat : read the code for detailsrange()#range(start, stop[, step])print(range(5))print(list(range(0, 5)))print(list(range(3, 10)))print(list(range(3, 10,2)))print(list(range(3, 1...原创 2019-06-14 17:02:41 · 151 阅读 · 0 评论 -
Python_file_test7_190616
conclusionjoin : join() 方法用于将序列中的元素以指定的字符连接生成一个新的字符串。str.join(sequence)#coding:utf-8f=open("C:/Users/UMR/Desktop/123.txt","rt")lines=f.readlines()#test find read with the space ('\n')lines...原创 2019-06-15 21:30:36 · 195 阅读 · 0 评论 -
Python_test8_Robust input_190617
conclusioncomplex()和complex(eval())之间的比较将能够排除非数字类型的输入。注意:不能直接使用eval(),否则,用户可以通过输入表达式(如100**2)输入数字,与要求不同(在实际应用中带来安全隐患)。高危函数eval()try - except / assert#coding:utf-8'''program2.数字的鲁棒输入--------...原创 2019-06-17 18:53:00 · 229 阅读 · 1 评论 -
Struct_graph&practice_190705
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Ma...原创 2019-07-05 21:55:42 · 200 阅读 · 0 评论