![](https://img-blog.csdnimg.cn/20190927151117521.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
刷题档案
主要记录一些有趣的算法变种题目
诗鸩
这个作者很懒,什么都没留下…
展开
-
CH0104 起床困难综合症(位运算典例)
传送门:起床困难综合症思路:要知道位运算永远只会改变本位,与其它位泾渭分明。据此,我们不难看出,每个位仅有1、0两种状态,在全部运算后,寻找两种状态的最大结果即可。#include<cstring>#include<iostream>#include<algorithm>using namespace std;int f=(1<<3...原创 2019-04-30 20:42:04 · 930 阅读 · 0 评论 -
BAPC - Runway Planning
Most airports have multiple runways. To identify runways, they are given a number indicat- ing the direction of the runway. Such a runway number is obtained by dividing the heading of the runway in de...原创 2019-05-01 18:33:40 · 594 阅读 · 0 评论 -
BAPC - Choosing Ice Cream
题目来源:https://nanti.jisuanke.com/t/A1729样例输入34 22 43 2样例输出21unbounded题意:我想买冰淇淋但是有选择恐惧症,所以用骰子来决定吃啥味的。但是骰子面数和冰淇淋数不一定相同,所以问我至少要抛多少次才能代表所有冰淇淋种类。样例解析:4种冰淇淋,一个2面的(骰子)硬币(ˉ▽ ̄~) ,抛两次才有四...原创 2019-05-01 19:27:41 · 294 阅读 · 0 评论 -
华东交通大学2018年ACM双基程序设计大赛题解
华东交通大学2018年ACM“双基”程序设计竞赛代码头多的都是标答Ctrl+c下来的,给自己挖个坟,回头有时间再填回去,不填回去就死在这里吧……传送门:https://ac.nowcoder.com/acm/contest/221#question目录华东交通大学2018年ACM“双基”程序设计竞赛A.ecjtuacmB.公式题(1)C.公式题(2)D.俺は人...原创 2018-11-22 23:28:49 · 7335 阅读 · 0 评论 -
BAPC - Lift Problems
传送门:https://nanti.jisuanke.com/t/A1732On the ground floor (floor zero) of a large university building a number of students are wait- ing for a lift. Normally, the lift stops at every floor where one...原创 2019-05-04 11:28:45 · 210 阅读 · 0 评论