会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ffgcc
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
14
15
16
17
18
2018年3月12日
Codeforces Round #470 (rated, Div. 2 C. Producing Snow(思维)
摘要: 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
阅读(145)
评论(0)
推荐(0)
2018年3月10日
Educational Codeforces Round 39 (Rated for Div. 2) D. Timetable(动态规划)
摘要: 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
阅读(194)
评论(0)
推荐(0)
Codeforces Round #469 (Div. 2) D. A Leapfrog in the Array(找规律)
摘要: 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
阅读(104)
评论(0)
推荐(0)
2018年3月6日
Bandwidth UVA - 140(next_premutation)
摘要: 读取的时候有坑,自己写怎样都过不去,参考别人的总算过了,最多8个,所以把这8个找到用函数全排列就好了. 不难,具体看代码把#include#define ll long long#define inf 0x3f3f3f3f#define pb push_ba...
阅读全文
posted @ 2018-03-06 12:25 ffgcc
阅读(106)
评论(0)
推荐(0)
2018年3月5日
Krypton Factor UVA 129(dfs)
摘要: 题意:找由前L个字母组成的第n大的困难串(相邻子串都不相等). 解析:直接从小到大找字符串,若是困难串,则cnt+1,知道cnt=n时按照题中的格式输出(注意一下格式) 困难串的判断:每新加一个字母,我们只需要判断以这个字母为结尾的子串和其相邻的子串是否相等...
阅读全文
posted @ 2018-03-05 17:46 ffgcc
阅读(174)
评论(0)
推荐(0)
UVA - 524(dfs水题)
摘要: 直接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
阅读(148)
评论(0)
推荐(0)
UVA - 10976 Fractions Again?!(水题)
摘要: 水题:直接从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
阅读(78)
评论(0)
推荐(0)
Codeforces Round #468 C. Laboratory Work(暴力)
摘要: 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
阅读(178)
评论(0)
推荐(0)
Codeforces Round #468 (Div. 2) D. Peculiar apple-tree(找规律)
摘要: 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
阅读(141)
评论(0)
推荐(0)
2018年2月13日
Maximum Product UVA - 11059(水题)
摘要: 闲得无聊刷到水题,但还是错了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
阅读(81)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
公告