码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果
HDU 4869 Turn the pokers(思维+组合公式+快速幂)
Turn the pokers 大意:给出n次操作,给出m个扑克,然后给出n个操作的个数a[i],每个a[i]代表可以翻的扑克的个数,求最后可能出现的扑克的组合情况。 Hint Sample Input: 3 3 3 2 3 For the this example: 0 express face down,1 express face up Ini...
分类:其他好文   时间:2014-07-23 22:35:57    阅读次数:254
hdu 1258 Sum It Up(dfs)
# include # include using namespace std; int flag,t,n,a[10010],cot[10010],vis[100010]; void dfs(int x,int sum,int count) { int i; if(sum>t) return ; else if(sum==t) { for(i=0;i<count;i++)...
分类:其他好文   时间:2014-07-23 21:04:53    阅读次数:211
LeetCode_51totalNQueens [N-Queens II]
#pragma warning(disable:4996) #include <Windows.h> #include <tchar.h> #include <cstdio> /* submit time : 1 request : Follow up for N-Queens problem. Now, instead outputting board configura...
分类:其他好文   时间:2014-07-23 18:13:56    阅读次数:284
11. action
场景由于webdriver是要模拟真实的用户操作,因此webdriver的Action类中提供了很多与操作有关的方法。下面列举一下Action类的一些主要方法key_down。模拟按键按下key_up。模拟按键弹起clicksend_keysdouble_click。鼠标左键双击click_and_...
分类:其他好文   时间:2014-07-23 15:22:16    阅读次数:155
OJ1 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2014-07-23 12:03:26    阅读次数:287
Linked List Cycle leetcode II java (寻找链表环的入口)
题目:Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up:Can you solve it without using extra spac....
分类:编程语言   时间:2014-07-23 12:02:46    阅读次数:304
Linked List Cycle leetcode java (链表检测环)
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?题解:这道题连带着II是很经典的,在看CC150时候,纠结这个问题纠结了很久....
分类:编程语言   时间:2014-07-23 12:02:26    阅读次数:311
git push失败the remote end hung up unexpectedly
Git Push是老是失败,提示:> fatal: the remote end hung up unexpectedly > git did not exit cleanly (exit code 1)原来是文件Push文件太大引起。解决方法:windows:在 .git/config 文件中加入...
分类:其他好文   时间:2014-07-23 11:55:26    阅读次数:319
java 四舍五入
double f = 111231.035; BigDecimal l = new BigDecimal(f); double c = l.setScale(2, RoundingMode.HALF_UP).doubleValue(); System...
分类:编程语言   时间:2014-07-22 23:31:07    阅读次数:301
VC获得本机网络连接状态
/本机网络连接类型(成功)#defineNET_TYPE_RAS_DIAL_UP_CONNECT_NET0x01//上网类型:采用RAS拨号连接上网0x01#defineNET_TYPE_LAN_CONNECT_NET0x02//上网类型:采用网卡通过局域网上网0x02#defineNET_TYPE...
分类:其他好文   时间:2014-07-22 22:49:52    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!