上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 数据结构实验之数组一:矩阵转置 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 数组——矩阵的转置 给定一个m n的矩阵(m,n include include int main() { int m,n,i,j; int 阅读全文
posted @ 2018-10-09 11:24 洛沐辰 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 数据结构实验之串三:KMP应用 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 有n个小朋友,每个小朋友手里有一些糖块,现在这些小朋友排成一排,编号是由1到n。现在给出m个数,能不能唯一的确定一对值l和r(l inclu 阅读全文
posted @ 2018-10-09 10:58 洛沐辰 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 数据结构实验之串一:KMP简单应用 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 给定两个字符串string1和string2,判断string2是否为string1的子串。 Input 输入包含多组数据,每组测试数据 阅读全文
posted @ 2018-10-09 10:44 洛沐辰 阅读(226) 评论(0) 推荐(0) 编辑
摘要: C/C++经典程序训练3 模拟计算器 Time Limit: 1000 ms Memory Limit: 8192 KiB Problem Description 简单计算器模拟:输入两个整数和一个运算符,输出运算结果。 Input 第一行输入两个整数,用空格分开; 第二行输入一个运算符(+、 、 阅读全文
posted @ 2018-10-09 09:44 洛沐辰 阅读(526) 评论(0) 推荐(0) 编辑
摘要: C/C++训练1 最大公约数与最小公倍数 Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description 输入两个正整数,求它们的最大公约数与最小公倍数。 Input 输入两个正整数,两个整数之间用空格分开。 数据保证在 int 范围内 阅读全文
posted @ 2018-10-09 09:37 洛沐辰 阅读(812) 评论(0) 推荐(0) 编辑
摘要: Stockbroker Grapevine Time Limit: 1000MS Memory Limit: 10000K Description Stockbrokers are known to overreact to rumours. You have been contracted to 阅读全文
posted @ 2018-10-08 23:15 洛沐辰 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Cow Hurdles Time Limit: 1000MS Memory Limit: 65536K Description Farmer John wants the cows to prepare for the county jumping competition, so Bessie an 阅读全文
posted @ 2018-10-08 23:06 洛沐辰 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题意:给你点、边,求起点到终点的最短距离。 题解:由于题目的数据量特别大,所以需要用邻接表来存边,之后对Dijkstra算法稍微魔改一下就可以了,本来以为会超时,做好了打堆优化的准备,结果卡时间过了,可以说很开心了. 注意SPFA会超时。 include include include includ 阅读全文
posted @ 2018-10-08 23:00 洛沐辰 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Candies Time Limit: 1500MS Memory Limit: 131072K Description During the kindergarten days, flymouse was the monitor of his class. Occasionally the hea 阅读全文
posted @ 2018-10-08 15:32 洛沐辰 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题意:t组数据,每组数据有abcd四个数,其中d可以加到abc任意一个数上(d可以拆分),求公式a^2 + b^2 + c^2 + 7 min(a,b,c)的最大值。 题解:首先明确一点,平方的增长速度是比较快的,所以当d比较大时,直接把他累加到一个数上就可以了,对于小范围数据枚举就可以。结果当时有 阅读全文
posted @ 2018-10-08 14:55 洛沐辰 阅读(186) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页