码迷,mamicode.com
首页 >  
搜索关键字:day one    ( 33377个结果
Leetcode | Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:其他好文   时间:2014-05-16 21:15:37    阅读次数:454
不用js实现幻灯片功能
one two three four five six seven eight
分类:Web程序   时间:2014-05-16 20:49:04    阅读次数:340
Scala 学习笔记
class Rational(n: Int, d: Int) { require(d != 0) override def toString = n +"/"+ d}The require method takes one boolean parameter. If the passed val.....
分类:其他好文   时间:2014-05-16 09:01:12    阅读次数:272
Cement Plant Project
So far, 100 per cent of workers have voted to strike for 24 hours, 98 per cent voted to strike for 48 hours, and 98 per cent voted to strike for one w...
分类:其他好文   时间:2014-05-13 22:04:48    阅读次数:346
杭电2005
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 int year,month,day; 8 9 char a;10 int days_of_month1[13] = {0,31,29...
分类:其他好文   时间:2014-05-13 22:03:48    阅读次数:375
Best Time to Buy and Sell Stock
原题: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of th...
分类:其他好文   时间:2014-05-13 14:12:41    阅读次数:342
Pat(Advanced Level)Practice--1016(Phone Bills)
Pat1016代码 题目描述: A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day w...
分类:其他好文   时间:2014-05-13 06:45:05    阅读次数:460
表驱动法
表驱动法:是一种编程模式将选择条件ifelse查表换成直接查表switch(month){case1,3,5,7,8,10,12:day=30;break;case2:day=28;break;default:day=30;break;}换成:day【mouthLen】={31283130313031,,,}
分类:其他好文   时间:2014-05-13 04:13:07    阅读次数:242
mysql慢查询日志切割,日志分析
#!/usr/bin/envpython#coding:utf8importos,sysimportdatetime,shutil,subprocessfromconfig.configimportslow_configclasscut_mysql(object):mysql_user,mysql_pass,date_day,slow_log_name,slow_log_path,mysqlsla_log_name,mysqldumpslow_log_name,new_log_path,new_log_nam..
分类:数据库   时间:2014-05-13 02:39:47    阅读次数:482
HDU 4028 The time of a day STL 模拟题
暴力出奇迹。。 #include #include #include #include #include #include #include #include using namespace std; #define ll __int64 #define N 42 ll n,m,ans; ll Gcd(ll x,ll y){ if(x>y)swap(x,y); while(x){ y%=...
分类:其他好文   时间:2014-05-12 23:11:06    阅读次数:445
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!