码迷,mamicode.com
首页 > 其他好文
Just a Hook
Just a HookTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1698DescriptionIn the game of DotA, Pudge’s meat ...
分类:其他好文   时间:2015-08-02 15:04:00    阅读次数:134
【转】 换行符‘\n’和回车符‘\r’
原文地址:http://blog.csdn.net/silyvin/article/details/7275037原文: 在计算机还没有出现之前,有一种叫做电传打字机(TeletypeModel33)的玩意,每秒钟可以打10个字符。但是它有一个问题,就是打完一行换行的时候,要用去0.2秒,正好可以....
分类:其他好文   时间:2015-08-02 15:03:32    阅读次数:124
HDU 5328 Problem Killer
题意:给一段序列,求连续的子序列中最长的等差数列或者等比数列的长度。解法:O(n)的扫两遍一次判等差一次判等比就好了。代码:#include#include#include#include#include#include#include#include#include#include#include...
分类:其他好文   时间:2015-08-02 15:01:21    阅读次数:125
第十五天:集合
一、集合:Collection一些方法(更多方法请参考帮助文档):增add(Object obj)、删remove()/removeAll()/clear()、改set(index,Object)、查get(index),迭代iterator()—>遍历1:List接口 特点:有序可重复的,可以用下...
分类:其他好文   时间:2015-08-02 15:02:38    阅读次数:117
【LeetCode】232 - Implement Queue using Stacks
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:其他好文   时间:2015-08-02 15:02:17    阅读次数:82
UIProgressView进度条
UIProgressView顾名思义用来显示进度的,如音乐,视频的播放进度,和文件的上传下载进度等。下面以一个简单的实例来介绍UIprogressView的使用。@interfaceActivityViewController :UIViewController{ UIProgressView*pr...
分类:其他好文   时间:2015-08-02 15:01:17    阅读次数:117
DFS POJ 1321 棋盘问题
题目传送门 1 /* 2 DFS:因为一行或一列都只放一个,可以枚举从哪一行开始放,DFS放棋子,同一列只能有一个 3 */ 4 #include 5 #include 6 #include 7 using namespace std; 8 9 char maze[10][10];1...
分类:其他好文   时间:2015-08-02 15:02:06    阅读次数:106
三色时空门式跑马灯1
#import @interface AppDelegate : UIResponder {@public NSInteger timeValue;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"....
分类:其他好文   时间:2015-08-02 15:02:07    阅读次数:137
ZOJ3761(并查集+树的遍历)
Easy billiardsTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeEdward think a game of billiards is too long and boring. So he invented a ...
分类:其他好文   时间:2015-08-02 15:02:56    阅读次数:100
242 Valid Anagram
Description:Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= ...
分类:其他好文   时间:2015-08-02 15:00:46    阅读次数:86
IOC:AutoFac使用demo
使用autofac 实现依赖注入1.引用 autofac.dll 和 autofac.configuration.dll2.新增接口 IDALusing System;using System.Collections.Generic;using System.Linq;using System.Te...
分类:其他好文   时间:2015-08-02 15:02:10    阅读次数:106
泛型(三)——约束与局限性
因为java虚拟机没有泛型这一说法,所以在使用java泛型时需要考虑一些限制,大多数限制都是由类型擦除引起的。1.不能用基本类型实例化类型参数 不能用类型参数代替基本类型。因此,没有Pair,只有Pair。当然其原因是类型擦除。擦除之后,Pair类含有Object类型的域,而Object不能存...
分类:其他好文   时间:2015-08-02 14:59:03    阅读次数:128
VS快捷键
项目相关的快捷键Ctrl+Shift+B=生成项目Ctrl+Alt+L=显示SolutionExplorer(解决方案资源管理器)Shift+Alt+C=添加新类Shift+Alt+A=添加新项目到项目编辑相关的键盘快捷键Ctrl+Enter=在当前行插入空行Ctrl+Shift+Enter=在当前...
分类:其他好文   时间:2015-08-02 15:01:49    阅读次数:119
Spark集群新增节点方法
Spark集群处理能力不足需要扩容,如何在现有spark集群中新增新节点?本文以一个实例介绍如何给Spark集群新增一个节点。1. 集群环境现有Spark集群包括3台机器,用户名都是cdahdp,主目录/home/ap/cdahdp,配置是2C8G虚拟机,集群基于yarn架构。 Master:128...
分类:其他好文   时间:2015-08-02 15:01:27    阅读次数:142
单向链表
#include#includetypedef struct _ListNode{ int m_nKey; struct _ListNode *m_pNext;}ListNode;//插入节点void InsertNode(ListNode **plistHead, int val){ ListNo...
分类:其他好文   时间:2015-08-02 14:58:59    阅读次数:91
【LeetCode 242】Valid Anagram
Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:其他好文   时间:2015-08-02 14:59:17    阅读次数:122
判断奇偶
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 判断奇偶{ class Program { static void Main(string...
分类:其他好文   时间:2015-08-02 14:59:06    阅读次数:108
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!