首页 > 其他
【BZOJ3028】食物 母函数
不会,只能在题解上看到结论再来写。 http://blog.csdn.net/popoqqq/article/details/42805975 不妨看这篇。 代码:(就是求C(n+2,3)) #include #include #include #include #define N 505 #define INV 1668 #define MOD 10007 using...
分类:其他   时间:2015-01-19 09:17:56    收藏:0  评论:0  赞:0  阅读:234
fedora 20 安装搜狗拼音输入法
fedora默认的输入法是ibus,用起来还是没有搜狗输入法顺手,于是找来ubuntukylin与搜狗合作开发的搜狗安装包进行安装. 1.卸载ibus sudo yum remove ibus gsettings set org.gnome.settings-daemon.plugins.keyboard active false #解除gnome桌面与ibus守护进程的绑定 ...
分类:其他   时间:2015-01-19 09:17:35    收藏:0  评论:0  赞:0  阅读:260
【BZOJ3850】【HDU4882】ZCC Loves Codefires 数论,叉积,贪心 “再不刷它就土了”系列
毕竟是HDU收录的题,,我怀疑它要变土。。 题意: 有n个项目,然后第一行输入损失度,第二行输入耗时 然后安排一下顺序, 每一项的消耗为当前已经做了的(包括此项)总时间*损失度。 求最小总消耗。 首先这道题是贪心,我们可以贪心排序项目。 策略: bool operator < (const YYC &a)const {return x*a.y 证明: 首先我们考...
分类:其他   时间:2015-01-19 09:17:26    收藏:0  评论:0  赞:0  阅读:121
Majority Element
题目: Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the array is non-empty and the majority...
分类:其他   时间:2015-01-19 09:17:06    收藏:0  评论:0  赞:0  阅读:231
BZOJ 3028 食物 母函数
题目大意、题解:http://wyfcyx.is-programmer.com/posts/76787.html CODE: #include #include #include #include #define MAX 510 #define MO 10007 using namespace std; char s[MAX]; int main() { s...
分类:其他   时间:2015-01-19 09:15:54    收藏:0  评论:0  赞:0  阅读:232
菜鸟程序员的成长之路(四)——欢送2014,欢迎2015
不求对得起谁,只求问心无“悔”,在合适的年纪做合适的事情。。。...
分类:其他   时间:2015-01-19 09:15:34    收藏:0  评论:0  赞:0  阅读:314
u-boot-2014.10移植第1天----熟悉u-boot(一)
硬件平台:tq2440开发环境:Ubuntu-3.11u-boot下载地址:http://ftp.denx.de/pub/u-boot/下载最新版本:u-boot-2014.10.tar.bz2在用户根目录下创建目录结构tq2440/{src/bootloader/u-boo...
分类:其他   时间:2015-01-19 09:15:24    收藏:0  评论:0  赞:0  阅读:246
XML之DOM解析模型
XML概述 Jerry jerry@yahoo.com 2014-10-20   DOM解析(DocumentObject Mode)是一种基于对象的API,它把XML的内容加载到内存中,生成一个与XML文档内容对应的对象模型。当解析完成后,内存中会生成一个对应的DOM树 XML解析只负责解析正确的XM...
分类:其他   时间:2015-01-19 09:14:14    收藏:0  评论:0  赞:0  阅读:117
CF 505B Mr. Kitayuta's Colorful Graph(最短路)
题意  求两点之间有多少不同颜色的路径 范围比较小  可以直接floyd #include #include using namespace std; const int N = 105; int d[N][N][N], ans; int main() { int a, b, c, n, m, q; while(~scanf("%d%d", &n, &m)) { ...
分类:其他   时间:2015-01-19 09:13:13    收藏:0  评论:0  赞:0  阅读:273
Cocos2dx.3x入门三部曲-Hello Game项目解析(三)
本篇是Cocos2d-x3.3入门三部曲的第三篇 l 分析proj.win32工程的主要构成 l 分析proj.android工程的主要构成 l 新建一个MyScene.cpp然后在游戏中显示出来 l 在android真机上运行查看效果
分类:其他   时间:2015-01-19 09:10:54    收藏:0  评论:0  赞:0  阅读:334
Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num...
分类:其他   时间:2015-01-19 09:09:44    收藏:0  评论:0  赞:0  阅读:246
上周热点回顾(1.12-1.18)
热点随笔:·从四分钟到两秒——谈谈客户端性能优化的一些最佳实践(马非码)·为什么A经理的团队总是会陷入加班与救火之中(femaleprogramer)·几个SQL小知识(吴广磊)·开源跨平台数据格式化框架概览(Dennis Gao)·年前辞职-WCF入门(6)(Sheldon_Lou)·快刀斩乱麻之...
分类:其他   时间:2015-01-19 09:09:24    收藏:0  评论:0  赞:0  阅读:242
免费版的进销存管理软件可以用吗
经过一段时间的发展,很多的企业管理者已经逐渐开始接受和使用进销存管理软件来帮助自己管理企业或者门店的采购,销售或者财务收支,但是小编看到还是有很多的企业管理者因为一时的贪图小便宜心理去找一些免费版或者是破解版的进销存软件来使用,小编也遇到很多的客户给我倾诉,因为使用免费版的进销存软件给企业带来的.....
分类:其他   时间:2015-01-19 09:08:24    收藏:0  评论:0  赞:0  阅读:222
ashx的学习
原文:ashx的学习 嘿嘿,今天我们休息,本来是想总结一下前两周学习的javascript和jquery,但是感觉好困哦,就没有认真地学习啦,于是做了一个小小的练习,刚开始学习html使用在项目中还是蛮高兴的啦,下面就简单的总结一下这个小小的登录页面。 一.html的静态页面 ...
分类:其他   时间:2015-01-19 09:07:24    收藏:0  评论:0  赞:0  阅读:255
Azure平台 对Twitter 推文关键字进行实时大数据分析
本文引自:http://azure.microsoft.com/en-us/documentation/articles/hdinsight-hbase-analyze-twitter-sentiment/
分类:其他   时间:2015-01-19 09:05:24    收藏:0  评论:0  赞:0  阅读:547
Maven中添加Jetty服务器配置
org.mortbay.jetty maven-jetty-plugin 6.1.26 ...
分类:其他   时间:2015-01-19 09:05:04    收藏:0  评论:0  赞:0  阅读:314
Leetcode: Binary Tree Upside Down
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up...
分类:其他   时间:2015-01-19 09:04:54    收藏:0  评论:0  赞:0  阅读:314
Qt Quick里的图形效果——颜色(Color)
Qt Quick提供了通过改变一个 Item 的颜色来产生各种各样效果的元素……...
分类:其他   时间:2015-01-19 08:02:34    收藏:0  评论:0  赞:0  阅读:361
dx11 入门 Tutorial 06: 明白context->updateSubsource和setConstantBuffers DirectXSampleBrowser(June 2010)
需要明白constantBuffer传入数据到shader的正确使用::cb1.vOutputColor = XMFLOAT4(0, 0, 0, 0); g_pImmediateContext->UpdateSubresource( g_pConstantBuffer, 0, NULL, &cb1,...
分类:其他   时间:2015-01-19 08:01:54    收藏:0  评论:0  赞:0  阅读:384
this 学习笔记 2
packagectgu.java; publicclassAccount{ privateintid; privatedoublebalance; privatedoubleannualTnterestRate; publicAccount(intid,doublebalance,doubleannualTnterestRate){ super(); this.id=id; this.balance=balance; this.annualTnterestRate=annualTnt..
分类:其他   时间:2015-01-19 06:59:04    收藏:0  评论:0  赞:0  阅读:253
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!