摘要: int read(int arr[]){ int i=0,n,flag=0; FILE *fp; if((fp=fopen("shuru.txt","r"))==NULL){ printf("cantfind the file"); } while(!feof(fp)){ if(flag==0){ 阅读全文
posted @ 2020-09-18 10:49 反语owo 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 利用二维数组储存,每一维储存一个单词;利用while(~scanf("%s",&a[i]))输入用i记录输入的单词总数,然后反向遍历就行 #include<stdio.h>int main(){int i=0;char a[101][101];while (~scanf("%s",&a[i])){i 阅读全文
posted @ 2020-06-30 07:51 反语owo 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 原理及python实现 graph:保存图,类似邻接表 costs:保存从起点到某点的最小花费 parents:保存节点的父节点 processed:用于保存已经处理过的点 graph={} graph["start"]={} graph["start"]["a"]=6 graph["start"] 阅读全文
posted @ 2020-04-19 12:21 反语owo 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Hurdles of 110m Time Limit: 2000 msMemory Limit: 65536 KB In the year 2008, the 29th Olympic Games will be held in Beijing. This will signify the pros 阅读全文
posted @ 2020-03-18 19:00 反语owo 阅读(139) 评论(0) 推荐(0) 编辑
摘要: B. Petr and a Combination Lock time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Petr has j 阅读全文
posted @ 2020-03-18 18:27 反语owo 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Tokens on the Segments Time Limit: 1000 msMemory Limit: 65536 KB Consider segments on a two-dimensional plane, where the endpoints of the -th segment 阅读全文
posted @ 2020-03-18 18:11 反语owo 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Traversals Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15904 Accepted Submission( 阅读全文
posted @ 2020-03-07 15:07 反语owo 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Largest Submatrix of All 1’s Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 9943 Accepted: 3538 Case Time Limit: 2000MS Description Given 阅读全文
posted @ 2020-03-05 21:57 反语owo 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Largest Rectangle in a Histogram Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 34844 Accepted: 11339 Description A histogram is a polygon 阅读全文
posted @ 2020-03-05 21:51 反语owo 阅读(130) 评论(0) 推荐(0) 编辑
摘要: A Bug's Life Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 52438 Accepted: 16876 Description BackgroundProfessor Hopper is researching t 阅读全文
posted @ 2020-03-03 18:54 反语owo 阅读(151) 评论(0) 推荐(0) 编辑