码迷,mamicode.com
首页 >  
搜索关键字:day 7    ( 6063个结果
通过C++的类设置系统时间和输出时间
#include #include using namespace std; class TDate { public: void SetDate(int y,int m,int d); int IsLeapYear(); void SetTime(int h,int m,int s); void DisplayTime(); private: int year,month,day; ...
分类:编程语言   时间:2014-09-24 10:48:26    阅读次数:327
Start here: portal to the lectures
Start here: portal to the lectures(每一天都对应一个链接,包含videos 和materials)Each of the pages linked below represents one day of the school, and contains the li...
分类:其他好文   时间:2014-09-23 23:21:05    阅读次数:290
Codeforces Round #250 (Div. 2) C. The Child and Toy 详解
output standard output On Children's Day, the child got a toy from Delayyy as a present. However, the child is so naughty that he can't wait to destroy the toy. The toy consists of n parts and ...
分类:其他好文   时间:2014-09-23 04:21:23    阅读次数:220
POJ 3250 Bad Hair Day(单调栈)
题目地址:POJ 3250 初学单调栈。多校和网络赛已经碰到两次了。 单调栈的原理简单的不能再简单了。。就是让栈里的元素从栈顶到栈底呈单调性。 比如说递增单调栈。 每次放进一个数的时候,如果栈顶的数小于要放的数,就把栈顶的数pop出来使得栈里保持单调性。 对于这道题来说,就从右往左开始遍历,建一个递增单调栈。那么每次pop出来的就是当前的牛可以看到的牛数。然后累加即可。 代码如下: ...
分类:其他好文   时间:2014-09-23 01:13:53    阅读次数:289
小猪的Android入门之路 Day 8 part 4
小猪的Android入门之路 Day 8 part 4 Android网络编程浅析——Android网络数据的上传 相信大家对于上节课的多线程断点下载还意犹未尽吧,不过这节我们又要讲一些新的知识点了; 1)get或post上传数据 2)使用开源框架httpClient上传数据 3)向服务器发送xml 4)使用http协议上传文件 5)webService平台的了解以及简单应用,查询号码归属地与天气查询 内容较多,看完的话相信读者会收获不少!...
分类:移动开发   时间:2014-09-22 22:19:53    阅读次数:329
C++学习之路 : class练习
需求:1.作业:写一个Date类a) 数据成员:year/month/day okb) 提供两个构造函数 okc) 实现功能setDate设置日期 okd) 把时间设定为今天 setToday(); oke) toString() 打印格式:2009/7/31 okf) toFormatString...
分类:编程语言   时间:2014-09-22 17:11:22    阅读次数:249
usort 使用(转载)
private function arrCmp($a,$b){if($a['day_time'] == $b['day_time']){return 0;}return($a['day_time'] Array ( [day_time] => 1291161600 [one_sum_click_nu...
分类:其他好文   时间:2014-09-22 14:48:22    阅读次数:185
poj 3250 Bad Hair Day
题目链接:http://poj.org/problem?id=3250思路分析: 题目要求求每头牛看见的牛的数量之和,即求每头牛被看见的次数和; 现在要求如何求出每头牛被看见的次数? 考虑到对于某头特定的牛来说,看见它的牛一定在它的左边,另外其高度应该大于该牛的高度,所...
分类:其他好文   时间:2014-09-22 02:39:31    阅读次数:161
Leetcode_num5_Best Time to Buy and Sell Stock II
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i...
分类:其他好文   时间:2014-09-21 03:10:29    阅读次数:265
hdu 4208 - The time of a day
题目:从1~n去若干个数字,使得他们的最小公倍数不小于M的有多少种。 分析:dp,数论,搜索。其实就是一个背包类似物。(貌似离散化dp写起来很简洁)              由于每个素数因子的个数有限(不超过20个)直接打表(dfs)计算出所有的最小公倍数;              然后DP更行最小公倍数即可;              这个题目要做一些优化(囧,TLE一次):   ...
分类:其他好文   时间:2014-09-20 14:07:47    阅读次数:248
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!