题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6667 思路:求个sum总和,另外再设个变量s=sum; for循环遍历过去 第i个的时候 他可以喝h=min(a【i】,sum-b【i】)杯奶茶 , 每次用s减去喝掉的 当s<0的时候代表没有足够的可以 ...
分类:
其他好文 时间:
2019-08-14 22:01:38
阅读次数:
91
Problem Description Roundgod is a famous milk tea lover at Nanjing University second to none. This year, he plans to conduct a milk tea festival. Ther ...
分类:
其他好文 时间:
2019-08-14 21:47:58
阅读次数:
109
Salty Fish Support or Not Three Investigators Milk Candy Ridiculous Netizens Stay Real TDL Snowy Smile Faraway Nonsense Time Speed Dog 11 Dimensions ...
分类:
其他好文 时间:
2019-08-07 18:50:13
阅读次数:
97
装饰者模式 一、应用实例 咖啡订单项目 1) 咖啡种类/单品咖啡:Espresso(意大利浓咖啡)、ShortBlack、LongBlack、Decaf 2)调料:Milk、Soy、Chocolate 3)要求在扩展新的咖啡种类时,有良好的扩展性、改动方便。 二、装饰者模式 动态的将新功能附加到对象 ...
分类:
其他好文 时间:
2019-08-04 23:50:19
阅读次数:
159
大意: $n*m$棋盘, 初始位置$(1,1)$, 横坐标为$\frac{m+1}{2}$时可以向下走, 否则只能左右走, 每走一步花费$1$秒. 有$k$管奶, 第$i$罐位置$(r_i,c_i)$, 要花费$t_i$的时间去喝. 对于所有的$1\le i\le k$, 求出喝完$i$管奶最短用时 ...
分类:
其他好文 时间:
2019-07-26 13:09:41
阅读次数:
103
1.链接地址 https://vjudge.net/problem/POJ-1953 2.问题描述 Given a positive integer n, determine the number of different chanting patterns of this length, i.e. ...
分类:
其他好文 时间:
2019-07-10 15:00:22
阅读次数:
141
https://github.com/PacktPublishing/Hands-On-Game-Development-Patterns-with-Unity-2018 1. Unity Engine Architecture 2. Game Loop and Update Method 3. P ...
分类:
编程语言 时间:
2019-07-08 19:50:51
阅读次数:
130
Understanding the Module Pattern in JavaScript Of all the design patterns you are likely to encounter in JavaScript, the module pattern is probably th ...
分类:
编程语言 时间:
2019-06-27 00:35:36
阅读次数:
107
1、先删除远程 Git 仓库 git remote rm origin 2、再添加远程 Git 仓库 git remote add origin https://github.com/XXXXXXXXXXX/design-patterns.git 注: 如果执行 git remote rm orig ...
分类:
其他好文 时间:
2019-06-13 13:43:48
阅读次数:
95
Introduction to Algorithms 3rd Thomas H. Cormen Cracking the coding Interview about coding and interview 6th Design Patterns Elements of Reusable Obje ...
分类:
其他好文 时间:
2019-06-06 22:52:36
阅读次数:
107