摘要:
在近几天打牛客网的比赛的时候,发现了一道bfs路径输出的题目,在自己写的时候并没有写出来,先贴一下相应的题目。 链接:https://ac.nowcoder.com/acm/contest/11253/I来源:牛客网 Lovely penguins is a tiny game in which t 阅读全文
摘要:
今天重新整理了一下二分查找的内容,也可以确实说二分的东西很简单,但是想要写对二分却可以说还是一件比较难 1.查找第一个大于等于x的元素 #include <bits/stdc++.h> using namespace std; int a[11]={0,2,3,3,4,4,4,4,5,5,7}; i 阅读全文
摘要:
C - Bowling AtCoder - agc051_b There are some number of bowling pins on a plane. Four people are observing the pins from different angles. Is it possi 阅读全文