随笔分类 -  基础水题

L1-002 打印沙漏 (20 分)(模拟,规律,二分)
摘要:L1-002 打印沙漏 (20 分)本题要求你写个程序把给定的符号打印成沙漏的形状。例如给定17个“*”,要求按下列格式打印所谓“沙漏形状”,是指每行输出奇数个符号;各行符号中心对齐;相邻两行符号数差2;符号数先从大到小顺序递减到1,再从小到大顺序递增;首尾... 阅读全文

posted @ 2019-03-28 14:35 tomjobs 阅读(194) 评论(0) 推荐(0)

B - Wrath CodeForces - 892B(思维,水题)
摘要:Hands that shed innocent blood!There are n guilty people in a line, the i-th of them holds a claw with length Li. The bell rings ... 阅读全文

posted @ 2019-03-28 14:28 tomjobs 阅读(203) 评论(0) 推荐(0)

A - Greed CodeForces - 892A(水题)
摘要:Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and can’s capacity bi (ai ≤ bi).Ja... 阅读全文

posted @ 2019-03-28 13:15 tomjobs 阅读(278) 评论(0) 推荐(0)

D武器大师的宝贝(最大相交区间,异或,最大公约数)
摘要:Description武器大师有两堆宝贝箱子,每个箱子都有着自己的一个编号。为了输入方便,每堆箱子编号都是连续的。现在他想分别从两堆箱子中各等概率的选择一个箱子,但是只有他选择的两个箱子编号异或(位运算)之后为0,他才能获得奖励。现在他想请你算算每次他能获得... 阅读全文

posted @ 2019-03-27 22:17 tomjobs 阅读(178) 评论(0) 推荐(0)

B - Mike and Fun CodeForces - 548B(水题,模拟)
摘要:Mike and some bears are playing a game just for fun. Mike is the judge. All bears except Mike are standing in an n × m grid, ther... 阅读全文

posted @ 2019-03-27 22:15 tomjobs 阅读(143) 评论(0) 推荐(0)

A - Rewards CodeForces - 448A(按规则模拟)
摘要:Bizon the Champion is called the Champion for a reason.Bizon the Champion has recently got a present — a new glass cupboard with ... 阅读全文

posted @ 2019-03-26 21:57 tomjobs 阅读(145) 评论(0) 推荐(0)

C - Soldier and Cards CodeForces - 546C(队列模拟水题)
摘要:Two bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all values are differ... 阅读全文

posted @ 2019-03-26 14:14 tomjobs 阅读(160) 评论(0) 推荐(0)

HD4018 URL
摘要:Parsing URLTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others)Total Submission(s): 2614 Accept... 阅读全文

posted @ 2018-12-01 19:54 tomjobs 阅读(120) 评论(0) 推荐(0)