luoguP2678 跳石头 二分的边界判断应该是 而不是 ...
分类:
其他好文 时间:
2018-07-10 15:52:31
阅读次数:
132
A、B、C、D、E5个渔夫夜间合伙捕鱼,各自在河边的树丛中休息。待日上三竿,渔夫A第一个醒来,他将鱼分作5份,把多余的一条扔回河中,拿自己的一份回家了。渔夫B第二个醒来,也将鱼分作5份,扔掉多余的一条,拿走自己的一份,接着后三个也按同样的办法分鱼,问5个渔夫至少合伙捕了多少条鱼。 ...
分类:
编程语言 时间:
2018-07-10 14:42:43
阅读次数:
255
Given two strings A and B of lowercase letters, return true if and only if we can swap two letters in A so that the result equals B. Example 1: Input: ...
分类:
其他好文 时间:
2018-07-10 13:42:16
阅读次数:
180
TreeNode getLastCommonParent(TreeNode root,TreeNode t1,TreeNode t2){ if(findNode(root.left,t1)){ if(findNode(root.right,t2)){ return root; }else{ ... ...
分类:
其他好文 时间:
2018-07-10 11:28:19
阅读次数:
129
事件的基本使用方式: 事件源.事件类型 = function(){事件触发后的操作}; 点击事件:click; 在js中点击事件使用时前面要加on,为onclick; 例:点击btn按钮给box添加样式; btn.onclick = funciton(){ box.style.width = '10 ...
分类:
Web程序 时间:
2018-07-10 11:16:15
阅读次数:
194
Session方式的国际化/** * @descripte 请求中如果有{@Param lang},则按照lang的格式国际化 * @descripte 请求中如果无{@Param lang},但session已经保存有语言国际化方式时,则按照session的格式国际化 * @descripte 没 ...
分类:
编程语言 时间:
2018-07-10 00:37:13
阅读次数:
207
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.F2) { this.OnKeyPress(new KeyPressEventArgs('r')); return t ...
#include using namespace std; const int maxN=110; const int inf=1e8; map id; int dis[maxN][maxN]; int main(){ for(int i=0;i>m>>n; string a,b; while(n-... ...
分类:
其他好文 时间:
2018-07-09 23:10:52
阅读次数:
142
一、筛选 1、eq(index|-index) 说明:获取当前链式操作中第N个jQuery对象,返回jQuery对象,类似的有get(index),不过get(index)返回的是DOM对象 示例: 描述:获取匹配的第二个元素 HTML代码: jQuery代码: 结果: 2、first() 说明:获 ...
分类:
Web程序 时间:
2018-07-09 17:56:41
阅读次数:
189
<asp:Repeater runat="server" ID="repnewlsit" OnItemCommand="itemCommand" OnItemDataBound="repnewlsit_ItemDataBound">
分类:
Web程序 时间:
2018-07-09 17:53:27
阅读次数:
166