首页 > 其他
【POJ 3252】 Round Numbers
【POJ 3252】 Round Numbers 组合数学里的题。。在我飞的引导下走上了数位dp的不归路。。。这样算不算开挂。。。。好羞涩 数位dp真的真的真的好好用!!! 数位dp真的真的真的好好用!!! 数位dp真的真的真的好好用!!! 重要的事说三遍 一入数位dp深似海 再也粗不来了。。。 用数位很好想……都不知道该怎么写题解。。。 代码如...
分类:其他   时间:2015-08-19 14:55:34    收藏:0  评论:0  赞:0  阅读:193
HDOJ 5399 Too Simple
每一个函数都必须是一个排列,经过连续的一段确定函数后数字不能少. 满足上面的条件的话,只要有一个-1函数特别的排列一下就可以满足要求,剩下的可以随意填 没有-1的话特判 Too Simple Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total S...
分类:其他   时间:2015-08-19 14:55:24    收藏:0  评论:0  赞:0  阅读:213
CPA vs CA which is better?
I understand that the choice between CPA and CA is a big career decision and hence, to help you take an informed decision, I prepared an infographics which will give you a clear picture of differentiation.
分类:其他   时间:2015-08-19 14:55:22    收藏:0  评论:0  赞:1  阅读:454
BFS DFS 模板
/* 该 DFS 框架以 2D 坐标范围为例,来体现 DFS 算法的实现思想。 */ #include #include #include using namespace std; const int maxn=100; bool vst[maxn][maxn]; //访问标记 int map[maxn][maxn]; //坐标范围 int dir[4][2]= {0,1,0,-1,1,0,-1,...
分类:其他   时间:2015-08-19 14:54:34    收藏:0  评论:0  赞:0  阅读:426
OOP版电子词典
输入代码: /* * Copyright (c) 2014, 烟台大学计算机学院 * All rights reserved. * 文件名称:sum123.cpp * 作 者:林海云 * 完成日期:2015年8月19日 * 版 本 号:v2.0 * * 问题描述:做一个简单的电子词典。在文件dictionary.txt中,保存的是英汉对照的一个...
分类:其他   时间:2015-08-19 14:54:24    收藏:0  评论:0  赞:0  阅读:167
Hadoop之HDFS命令
概述 所有的HDFS命令都调用bin/hdfs脚本文件,如果运行hdfs脚本没有带任何参数的话,则打印所有命令的描述。 使用: hdfs [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [COMMAND_OPTIONS] Hadoop是一个参数解析框架,采用解析泛型选项以及运行类。 命令参数 描述 --config...
分类:其他   时间:2015-08-19 14:54:15    收藏:0  评论:0  赞:0  阅读:187
pat 2-07. 素因子分解
代码: #include #include #include using namespace std; int prime(int n) { if(n==2||n==3) { return 1; } if(n%6!=1&&n%6!=5) return 0; for(int i=5;i*i<=n;i+=6) {...
分类:其他   时间:2015-08-19 14:54:04    收藏:0  评论:0  赞:0  阅读:71
虚拟机器人
虚拟机器人能够陪你:聊天、笑话、故事、成语接龙、吉凶、新闻、星座、百科问答、图片、天气、菜谱、快递、计算、日期、飞机、列车、知识库。功能非常强大哦!...
分类:其他   时间:2015-08-19 14:53:54    收藏:0  评论:0  赞:0  阅读:161
POJ 1300 Door Man(欧拉回路_格式控制*)
Description You are a butler in a large mansion. This mansion has so many rooms that they are merely referred to by number (room 0, 1, 2, 3, etc...). Your master is a particularly absent-minded lou...
分类:其他   时间:2015-08-19 14:53:44    收藏:0  评论:0  赞:0  阅读:145
fzu 1075 分解素因子
代码: #include #include #include using namespace std; int prime(int n) { if(n==2||n==3) { return 1; } if(n%6!=1&&n%6!=5) return 0; for(int i=5; i*i<=n; i+=6) { ...
分类:其他   时间:2015-08-19 14:53:34    收藏:0  评论:0  赞:0  阅读:130
Matlab 之 Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
save mat文件的时候出现以下错误: matlab错误提示: Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3. To save this variable, use the -v7.3 switch. Skipping... 解决办法: 1、打开ma...
分类:其他   时间:2015-08-19 14:53:14    收藏:0  评论:0  赞:0  阅读:289
积跬步,聚小流------具有滑动效果的导航
网上常用动态导航效果的代码分析...
分类:其他   时间:2015-08-19 14:53:04    收藏:0  评论:0  赞:0  阅读:119
hdu 1596 find the safest road(最长路)
find the safest road Time Limit: 10000/5000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9285    Accepted Submission(s): 3287 Problem Description XX星球有很多城...
分类:其他   时间:2015-08-19 14:52:54    收藏:0  评论:0  赞:0  阅读:174
TaoCode-淘宝的SVN开源托管平台
无意中发现的..试用了一下,感觉还不错, 简单说一下如何使用: 进入 http://code.taobao.org/project/explore/ 注册完后根据提示新建项目,然后在本地随便新建一个目录,检出的时候输入在taocode上新建的项目的svn repo.这样就基本完成了. 如果要导入别人的项目做法也是类似,只需要获得别人的svn repo,然后在本地创建一个目录,检...
分类:其他   时间:2015-08-19 14:52:44    收藏:0  评论:0  赞:0  阅读:258
HDU 1022.Train Problem I【栈的应用】【8月19】
Train Problem I Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Igna...
分类:其他   时间:2015-08-19 14:52:34    收藏:0  评论:0  赞:0  阅读:216
spoj 10232 Distinct Primes(打表)
Distinct Primes Arithmancy is Draco Malfoy's favorite subject, but what spoils it for him is that Hermione Granger is in his class, and she is better than him at it.  Prime numbers are of mystical im...
分类:其他   时间:2015-08-19 14:52:24    收藏:0  评论:0  赞:0  阅读:234
hdu1035
hdu1035是个模拟题,按照图上的方向走,走出grid,算出步数,走入循环,则输入循环体的个数有多少个,和走入循环体之前的个数多少个 #include #include using namespace std; struct node { char c; int count; }; node nd[1005][1005]; int n,m,root; int ste...
分类:其他   时间:2015-08-19 14:51:45    收藏:0  评论:0  赞:0  阅读:80
抽象类的相关问题
一..抽象类中是否有构造函数? 答:抽象类中有构造函数,也可以有自定义的有参构造函数,但是抽象类不能实例化,它的构造函数仅提供给子类调用,实际意义暂时还没有发现。 二.抽象关键字abstract不可以和哪些关键字共存? 答:private:抽象类不可以实例化,抽象方法被private修饰不能被子类复写。 被final关键字修饰的方法不能复写,类不能创建子类。 抽象类中可不可以没有抽象...
分类:其他   时间:2015-08-19 14:51:34    收藏:0  评论:0  赞:0  阅读:238
LeetCode OJ 之 Ugly Number (丑数)
题目: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ...
分类:其他   时间:2015-08-19 14:51:04    收藏:0  评论:0  赞:0  阅读:145
LeetCode OJ 之 Ugly Number II (丑数-二)
题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of t...
分类:其他   时间:2015-08-19 14:50:44    收藏:0  评论:0  赞:0  阅读:297
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!