package com.fgy.proxy; public interface SaleComputer { String sale(Double money); void show(Double money); } package com.fgy.proxy; public class Lenov ...
分类:
其他好文 时间:
2020-01-29 21:22:06
阅读次数:
63
1.理发题(10份) (1)110元,洗剪吹31元,可以多少次洗剪吹?最后还剩多少? (2)一次剪头发15元和一次洗头20元,平均每次消费多少钱? public class Test04 { public static void main(String[]args){ double money=11 ...
分类:
编程语言 时间:
2020-01-27 17:14:47
阅读次数:
104
使用nunjucks代替原来的ejs,因为这个更强大,是node中主流的模板引擎 "nunjucks官网" 配置使用 nunjucks 模板引擎 nunjucks 模板引擎没有对模板文件名的后缀名做特定限制 如果文件名是 a.html 则渲染的时候就需要传递 a.html 如果文件名是 b.nujs ...
分类:
其他好文 时间:
2020-01-24 14:37:44
阅读次数:
120
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that a ...
分类:
其他好文 时间:
2020-01-24 09:18:30
阅读次数:
75
先定义一个公共的接口 public interface SalaComputer { public abstract String sala(double money); public abstract void show(); } 一个真实对象 /** * 真实类 */ public class ...
分类:
编程语言 时间:
2020-01-21 23:32:04
阅读次数:
91
1. 先定义一个父构造函数 2. 再定义一个子构造函数 3. 子构造函数继承父构造函数的属性(使用call方法) 如上代码结果如图: ...
分类:
其他好文 时间:
2020-01-21 21:41:38
阅读次数:
66
* 红包算法,给定一个红包总金额和分红包的人数,输出每个人随机抢到的红包数量。 * 要求: * 每个人都要抢到红包,并且金额随机 * 每个人抢到的金额数不小于1 * 每个人抢到的金额数不超过总金额的30% * 例如总金额100,人数10,输出【19 20 15 1 25 14 2 2 1 1】 // ...
分类:
编程语言 时间:
2020-01-21 12:05:05
阅读次数:
287
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:
其他好文 时间:
2020-01-20 00:24:28
阅读次数:
86
获取今日订单总数和订单总金额 //fields区分出order_type不等于1的订单,订单金额money加运费order_freight合计 $fields = [ 'COUNT(1) as order_num', 'SUM(IF(order_type != 1, money + order_fr ...
分类:
数据库 时间:
2020-01-15 19:51:47
阅读次数:
97
原题链接在这里:https://leetcode.com/problems/coin-change-2/ 题目: You are given coins of different denominations and a total amount of money. Write a function ...
分类:
其他好文 时间:
2020-01-15 09:55:48
阅读次数:
59