码迷,mamicode.com
首页 >  
搜索关键字:poj 3087 shufflem up    ( 27914个结果
poj3414 Pots
搜索空间不过 \(1e4\) ,暴力 \(bfs\) 即可得到最少操作。 输出每次操作可能需要手动模拟栈,方便找到最优解后回溯输出。 /** * poj3414 Pots * */ #include <cstdio> #include <queue> #include <iostream> #inc ...
分类:其他好文   时间:2021-01-25 11:05:02    阅读次数:0
POJ3278 Catch That Cow
题目链接:https://vjudge.net/problem/POJ-3278 Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediatel ...
分类:其他好文   时间:2021-01-19 12:20:23    阅读次数:0
[Leetcode]4. Median of Two Sorted Arrays
题目描述 Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. Follow up: The overall run time ...
分类:其他好文   时间:2021-01-19 12:12:17    阅读次数:0
harbor证书过期问题
docker-compose down cd /root/harbor ./prepare ## 过期替换证书要重新执行prepare 否则只重启替换证书不生效 客户端仍然报证书过期 docker-compose up -d ...
分类:其他好文   时间:2021-01-19 11:55:36    阅读次数:0
linux配置虚拟ip
ifconfig ens33:1 192.168.4.10 netmask 255.255.255.0 ifconfig ens33:1 up 修改配置文件,使配置在主机重启后自动生效 cd /etc/sysconfig/network-scripts/ cat ifcfg-ens33 > ifcf ...
分类:系统相关   时间:2021-01-18 11:34:17    阅读次数:0
挑战程序设计竞赛 习题 poj 3050 Hopscotch
地址 https://vjudge.net/problem/POJ-3050 The cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set of numbered boxes ...
分类:其他好文   时间:2021-01-18 11:21:11    阅读次数:0
POJ 2376 Cleaning Shifts
题目如下: 数轴上有 n (1 输入 第一行:N和T 第二行至N+1行: 每一行一个闭区间。 输出 选择的区间的数目,不可能办到输出 1 样例输入 3 10 1 7 3 6 6 10 样例输出 2 提示 这道题输入数据很多,请用scanf而不是cin 解题思路: 这题是一道非常简单的区间问题,利用贪 ...
分类:其他好文   时间:2021-01-15 12:03:02    阅读次数:0
(九)Spring从入门到入土——AOP就这么简单
AOP 什么是AOP ? 面向切面编程。通过预编译的方式和运行期动态代理实现程序功能的统一维护的一种技术。AOP是OOP的延续,是软件开发中的一个热点,也是Spring框架中的一个重要内容,是函数式编程的一种衍生泛型,利用AOP可以对业务逻辑的各个部分进行隔离,从而使业务逻辑各个部分的耦合度降低,提 ...
分类:编程语言   时间:2021-01-14 10:40:40    阅读次数:0
[Leetcode]1. Two Sum
题目描述 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that eac ...
分类:其他好文   时间:2021-01-13 11:07:09    阅读次数:0
Find The Multiple POJ - 1426
原题链接 考察:dfs或者bfs 暴力枚举即可,没有什么特别的技巧 dfs:找到了就标记一下,避免继续搜索(因为答案一定在long long里,所以超过18位就可以不用算了) bfs:用G++编译,找到当即退出.注意一定要让所有路径都有返回值否则报错 1 #include <cstdio> 2 #i ...
分类:其他好文   时间:2021-01-11 11:20:58    阅读次数:0
27914条   上一页 1 ... 8 9 10 11 12 ... 2792 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!