1.状态定义 dp[i]表示组成面额 i,有多少种方案。 2.状态转移方程 int[] coins = new int[]{1,5,10,25}; for(int coin: coins) { dp[k] += dp[k - coin]; } 比如dp[36] = dp[36-1] + dp[36 ...
分类:
其他好文 时间:
2021-04-23 12:06:20
阅读次数:
0
java 矩阵转换: class ImageUtil{ public static int[][] convert2DArray(int[][] arr){ int height=arr.length; int width=arr[0].length; int[][] result=new int[ ...
分类:
其他好文 时间:
2021-04-23 12:03:31
阅读次数:
0
1、 abstract修饰符可以用来修饰类也可以修饰方法,如果修饰类,就是抽象类;如果修饰方法,就是抽象方法。 2、 抽象类中可以没有抽象方法,抽象方法的类一定要声明为抽象类。 3、 抽象类,不能使用new关键字来创建对象,它是用来让子类继承的。 4、 抽象方法,只有方法的声明,没有方法的实现,它是 ...
分类:
编程语言 时间:
2021-04-22 16:09:17
阅读次数:
0
<UIDocumentPickerDelegate> @property (nonatomic, strong) UIDocumentPickerViewController *documentPickerVC; /** 初始化 UIDocumentPickerViewController 选文件啊 ...
分类:
其他好文 时间:
2021-04-22 16:03:31
阅读次数:
0
1、(SynchronizationContext)同步上下文的作用 SynchronizationContext其实就是实现线程之间通讯的。 2、创建(SynchronizationContext)同步上下文的方法 1)直接new创建一个SynchronizationContext同步上下文对象。 ...
1,设置背景色为透明色 设置alpha透明系数 renderer = new THREE.WebGLRenderer( { antialias: true, alpha: true } ); renderer.setClearAlpha(0.2); alpha: true 这个属性是关键,不然背景会 ...
分类:
其他好文 时间:
2021-04-22 15:57:26
阅读次数:
0
<?php //index.php 公众号后台配置的路径是这个index.php $wechatObj = new wechat(); $wechatObj->responseMsg(); class wechat { //返回消息模板 private $textTpl = [ 'text' => ...
分类:
微信 时间:
2021-04-22 15:53:55
阅读次数:
0
SelectMany 一个序列的每个元素投影, 将平展为一个序列。结果延迟执行。 PetOwner[] petOwners ={ new PetOwner { Name="Higa, Sidney",Pets = new List<string>{ "Scruffy", "Sam" } }, new ...
分类:
其他好文 时间:
2021-04-22 15:43:01
阅读次数:
0
package operator;public class Demo01 { public static void main(String[] args) { //二元运算符 //ctrl + D : 复制当前行到下一行 int a = 10; int b = 20; int c = 25; int ...
分类:
其他好文 时间:
2021-04-22 15:42:24
阅读次数:
0
Date dNow = new Date(); //当前时间Date dBefore = new Date();Calendar calendar = Calendar.getInstance(); //得到日历calendar.setTime(dNow);//把当前时间赋给日历calendar.a ...
分类:
其他好文 时间:
2021-04-22 15:38:17
阅读次数:
0