
搜索
心脏dance
求关注!!!求关注!!!安卓、后端学习记录,面试算法题(博主ACM区域赛银牌~~~水银嘻嘻~~~,蓝桥杯国一~~~),面试技术题。如果觉得博主写的好,菜鸡博主求关注~~~。 /*
呜呜呜~~大学的时候,写的博文中有些是借鉴的,若有侵权,请告知,立马删除。。。。 */
展开
-
2018 ICPC Greater New York Regional Contest What time is it anyway?(搜索)
题目来源2018 ICPC Greater New York Regional Contest题目复制过来有的地方不行,显示不对,既然来学习,就知道原题的样子吧~~嘻嘻~~,不过我的解释和代码都是对的。The \text{Frobozz Magic Clock Company}Frobozz Magic Clock Company makes 12-hour analog clocks...原创 2018-12-08 21:10:02 · 613 阅读 · 1 评论 -
小乐乐搭积木(深搜)
链接:https://ac.nowcoder.com/acm/contest/301/B来源:牛客网题目描述小乐乐想要给自己搭建一个积木城堡。积木城堡我们假设为n*m的平面矩形。小乐乐现在手里有1*2,2*1两种地砖。小乐乐想知道自己有多少种组合方案。 输入描述:第一行输入整数n,m。(1<=n,m<=10)输出描述:输出组合方案数。...原创 2018-12-06 13:10:43 · 345 阅读 · 0 评论 -
Aizu —— 1379 Parallel Lines(暴力搜索)
Problem BGiven an even number of distinct planar points, consider coupling all of the points into pairs. All the possible couplings are to be considered as long as all the given points are coupled t...原创 2018-12-13 17:10:40 · 338 阅读 · 0 评论 -
HDU——4597 Play Game (对抗搜索)
Alice and Bob are playing a game. There are two piles of cards. There are N cards in each pile, and each card has a score. They take turns to pick up the top or bottom card from either pile, and the s...原创 2019-01-26 10:49:24 · 243 阅读 · 0 评论 -
带分数 (全排列+搜索)
标题:带分数 100 可以表示为带分数的形式:100 = 3 + 69258 / 714 还可以表示为:100 = 82 + 3546 / 197 注意特征:带分数中,数字1~9分别出现且只出现一次(不包含0)。 类似这样的带分数,100 有 11 种表示法。题目要求:从标准输入读入一个正整数N (N<1000*1000)程序输出该数字用数码...原创 2019-01-28 19:13:10 · 285 阅读 · 0 评论 -
迷宫(bfs)
链接:https://ac.nowcoder.com/acm/contest/332/J来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述你在一个 n 行 m 列的网格迷宫中,迷宫的每一格要么为空,要么有一个障碍。你当前在第 r 行第 c 列(保证该格子为空)。每...原创 2019-02-10 15:19:37 · 843 阅读 · 0 评论