摘要: Charm Bracelet 题目链接:http://poj.org/problem?id=3624 Description Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she' 阅读全文
posted @ 2018-01-27 22:51 sortmin 阅读(138) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 084 题目链接:https://abc084.contest.atcoder.jp/ 总结:2017年的最后一场ATC,只过了AB题,全程卡D,算法没问题,比赛时候的输出方式会WA。。 A题题解:签到题,直接输出48-N即可。 AC代码: B题题解 阅读全文
posted @ 2017-12-31 03:34 sortmin 阅读(231) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 083 总结:7分钟三题rank12.。一路挂机终榜rank52,+328分,D题确实想不出来怎么写。。 A题题解:判断a+b和c+d的大小关系即可。 AC代码: B题题解:暴力把每个值的数位和求出来即可。 AC代码: C题题解:一直除2除下去即可, 阅读全文
posted @ 2017-12-24 13:24 sortmin 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #452 (Div. 2) 题目链接:http://codeforces.com/contest/899 已过ABC题,待更。 A题题意:给N个组,每个组有1个或两个人,问能组成多少个三人组。 A题题解:贪心的思想,统计出两个人和一个人的组数X和Y,肯定先选一个两人 阅读全文
posted @ 2017-12-23 02:47 sortmin 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #453 (Div. 2) 题目链接:http://codeforces.com/contest/902. A题题意:每次给X,Y表示可以到达X-Y上的任意点。询问最后是否可以到达终点。 A题题解:将X-Y写成一个前闭后开的区间,将区间的点标记,最后遍历从0-N的所 阅读全文
posted @ 2017-12-23 01:56 sortmin 阅读(141) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 069 比赛链接:https://abc069.contest.atcoder.jp/ A题题解:水题,N*M划出来的方块是(N-1)*(M-1)。 AC代码: B题题解:用length计算字符串S长度N,输出S[0],N-2,S[N-1]即可。 A 阅读全文
posted @ 2017-12-22 01:46 sortmin 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Find them, Catch them Description The police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the c 阅读全文
posted @ 2017-12-21 17:21 sortmin 阅读(157) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 081 题目链接:https://abc081.contest.atcoder.jp/ 总结:四道题较为简单,比赛时切完三题rank41,然后D题读错题,一直挂机到结束,rank60,+200分。 A题:签到题,直接读入字符串判断每个字符的1的个数输 阅读全文
posted @ 2017-12-12 15:19 sortmin 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1432 独木舟 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 1432 独木舟 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算法题 1432 独木舟 基准时间限制:1 秒 空间限制:131072 KB 分值: 10 难度:2级算 阅读全文
posted @ 2017-12-10 14:53 sortmin 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1266 蚂蚁 题目来源: Poj 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:2级算法题 1266 蚂蚁 题目来源: Poj 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:2级算法题 1266 蚂蚁 题目来源: Poj 基准时间限制:1 秒 空 阅读全文
posted @ 2017-12-07 18:19 sortmin 阅读(150) 评论(0) 推荐(0) 编辑