码迷,mamicode.com
首页 >  
搜索关键字:zero clipboard    ( 2343个结果
LeetCode10 Regular Expression Matching
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:其他好文   时间:2015-06-07 20:08:33    阅读次数:144
2.3.3 Zero Sum
dfs,模拟即可。不难/*ID: awsd1231PROG: zerosumLANG: C++*/#include#include#includeusing namespace std;int n;char ch[] = {'+', '-', ' '};void dfs(int x, int cha...
分类:其他好文   时间:2015-06-07 15:44:08    阅读次数:92
HDU ACM 1066 Last non-zero Digit in N!
#include using namespace std; int mod[20]={1,1,2,6,4,2,2,4,2,8,4,4,8,4,6,8,8,6,8,2}; char s[1010]; //字符串 int num[1010]; //转换为数字 int sovle() { int len,i,c,ans; len=strlen(s); ans=1; for(i=0...
分类:其他好文   时间:2015-06-07 13:55:30    阅读次数:128
codeforces Looksery Cup 2015 H Degenerate Matrix
The determinant of a matrix 2?×?2 is defined as follows: A matrix is called degenerate if its determinant is equal to zero. The norm ||A|| of a matrix A is defined as a maximum of absolute v...
分类:其他好文   时间:2015-06-07 13:52:04    阅读次数:121
js/剪贴板
Copy To Clipboard Copy This Too!
分类:Web程序   时间:2015-06-07 00:57:45    阅读次数:159
vim调用系统剪切板复制粘贴
文章参考:http://vim.wikia.com/wiki/In_line_copy_and_paste_to_system_clipboard。 将以下内容添加到~/下的.vimrc " On OSX vmap y:call system("pbcopy", getreg("\"")) nmap :call setreg("\"",system("pbpaste"))p " On u...
分类:系统相关   时间:2015-06-05 10:20:13    阅读次数:165
LeetCode 10: Regular Expression Matching
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire inpu...
分类:其他好文   时间:2015-06-02 00:32:05    阅读次数:121
水题 Codeforces Round #299 (Div. 2) A. Tavas and Nafas
题目传送门 1 /* 2 很简单的水题,晚上累了,刷刷水题开心一下:) 3 */ 4 #include 5 using namespace std; 6 7 char s1[11][10] = {"zero", "one", "two", "three", "four", "five",...
分类:其他好文   时间:2015-06-01 22:16:29    阅读次数:128
leetcode 15 -- 3Sum
3Sum 题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. For example, given array S...
分类:其他好文   时间:2015-06-01 14:44:59    阅读次数:132
LeetCode之ThreeSum
题目: Given an array S of n integers, are there elements a,b,c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: ? Elements in a triplet (a,b,c) must...
分类:其他好文   时间:2015-05-31 14:06:28    阅读次数:276
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!