上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: Infinite Maze time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Infinite Maze time limit p 阅读全文
posted @ 2019-08-02 16:54 Railgun000 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K 64bit IO Format: %lld 题目描述 牛牛喜欢这样的数组: 1:长度为n 2:每一个数都在1到k之间 3:对于任意连续的两个数A,B,A<=B 与(A % B != 0) 两个条件至少 阅读全文
posted @ 2019-08-01 22:35 Railgun000 阅读(365) 评论(0) 推荐(0) 编辑
摘要: C. MP3 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. MP3 time limit per test 1 secon 阅读全文
posted @ 2019-07-31 10:51 Railgun000 阅读(179) 评论(0) 推荐(0) 编辑
摘要: k-Multiple Free Set time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A k-multiple free se 阅读全文
posted @ 2019-07-30 17:19 Railgun000 阅读(235) 评论(0) 推荐(0) 编辑
摘要: E. Color Stripe time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Color Stripe time lim 阅读全文
posted @ 2019-07-30 15:19 Railgun000 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 本文基于https://blog.csdn.net/v_july_v/article/details/7041827和《算法竞赛入门经典训练指南》 注意:有时可能会编译错误,因为next可能是关键字,此时改变一下next数组的名字就行了 下面这个kmp可以求出模板串在文本串中第一个匹配的位置,也可以 阅读全文
posted @ 2019-07-28 16:57 Railgun000 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 本文基于https://www.cnblogs.com/TheRoadToTheGold/p/6290732.html 阅读全文
posted @ 2019-07-28 16:56 Railgun000 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/884/A来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 524288K,其他语言1048576K 64bit IO Format: %lld 时间限制:C/C++ 1秒,其他语言2秒 空间限 阅读全文
posted @ 2019-07-27 22:44 Railgun000 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 最近两场训练赛都有用到大数加法,但我又不想用java写,就整理了一下c++的大数加法模板. 本文基于老笨猫https://www.cnblogs.com/ronzhang-536/articles/4049551.html的代码 阅读全文
posted @ 2019-07-18 10:01 Railgun000 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Problem Description 任何一个大学生对菲波那契数列(Fibonacci numbers)应该都不会陌生,它是这样定义的:F(1)=1;F(2)=2;F(n)=F(n-1)+F(n-2)(n>=3);所以,1,2,3,5,8,13……就是菲波那契数列。在HDOJ上有不少相关的题目,比 阅读全文
posted @ 2019-05-06 20:22 Railgun000 阅读(132) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页