上一页 1 ··· 14 15 16 17 18
摘要: C. Producing Snow time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputAli... 阅读全文
posted @ 2018-03-12 13:18 ffgcc 阅读(139) 评论(0) 推荐(0) 编辑
摘要: D. Timetable time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputIvan is... 阅读全文
posted @ 2018-03-10 17:14 ffgcc 阅读(171) 评论(0) 推荐(0) 编辑
摘要: D. A Leapfrog in the Array time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard... 阅读全文
posted @ 2018-03-10 16:57 ffgcc 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 读取的时候有坑,自己写怎样都过不去,参考别人的总算过了,最多8个,所以把这8个找到用函数全排列就好了. 不难,具体看代码把#include#define ll long long#define inf 0x3f3f3f3f#define pb push_ba... 阅读全文
posted @ 2018-03-06 12:25 ffgcc 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 题意:找由前L个字母组成的第n大的困难串(相邻子串都不相等). 解析:直接从小到大找字符串,若是困难串,则cnt+1,知道cnt=n时按照题中的格式输出(注意一下格式) 困难串的判断:每新加一个字母,我们只需要判断以这个字母为结尾的子串和其相邻的子串是否相等... 阅读全文
posted @ 2018-03-05 17:46 ffgcc 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 直接dfs,找到最后一个与1相加判断是不是素数即可#include#define ll long long#define inf 0x3f3f3f3f#define pb push_back#define rep(i,a,b) for(int i=a;i=a... 阅读全文
posted @ 2018-03-05 16:27 ffgcc 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 水题:直接从k+1到2*k枚举即可#include#define ll long long#define inf 0x3f3f3f3f#define pb push_back#define rep(i,a,b) for(int i=a;i=a;i--)usi... 阅读全文
posted @ 2018-03-05 16:10 ffgcc 阅读(74) 评论(0) 推荐(0) 编辑
摘要: C. Laboratory Work time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outputAn... 阅读全文
posted @ 2018-03-05 13:32 ffgcc 阅读(167) 评论(0) 推荐(0) 编辑
摘要: D. Peculiar apple-tree time limit per test 1 second memory limit per test 256 megabytes input standard input output standard outp... 阅读全文
posted @ 2018-03-05 12:34 ffgcc 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 闲得无聊刷到水题,但还是错了0.0 第一点注意的每个输出后面都有空行 第二点要用long long 第三点mx初值为0#include #define ll long long#define pb push_back#define inf 0x3f3f3f3... 阅读全文
posted @ 2018-02-13 23:34 ffgcc 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18