码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
【POJ2699】The Maximum Number of Strong Kings 枚举(二分)+网络流check、
题意: 有n个人,两两都有比赛,然后有每个人的胜场次数。 规定把比自己胜场次数多的人都赢了的就是strong(weak) king (vegetables)  (why i say that they are so weak?  :****,how do you think a person who beat the heroes but defeated at the dogface? ...
分类:其他好文   时间:2015-01-07 11:03:03    阅读次数:244
TortoiseGit Bad file number 解决方法
作者:zhanhailiang 日期:2015-01-07 直接使用命令行git pull操作正常,如下: D:\vipshop\mstats\mstats-monitor>git pull Updating 5050c42..e8b3bd9 Fast-forward public/css/app.css | 30 ++++++++++++++++++ pu...
分类:其他好文   时间:2015-01-07 10:59:56    阅读次数:339
POJ 2699 The Maximum Number of Strong Kings 竞赛图+最大流
题目大意:有n个人之间互相竞赛,现在给出每个人赢了多少局。若定义一个人是最高分或者这个人赢了所有比他分高的人,那么这个人就算赢了。问最多可能有多少人赢。 思路:最大流模型的另一种应用。二分图,左边是所有选手,右边是所有比赛。 S->所有选手 f:该选手赢了多少局 所有比赛->T f:1 由于最多只有十个人,所以枚举答案就行了。枚举最多有多少人赢了,如果一个分比较低的人赢了,那么分比...
分类:其他好文   时间:2015-01-07 09:24:41    阅读次数:147
Leetcode:
Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.Naive方法:A simple method is...
分类:其他好文   时间:2015-01-07 08:11:12    阅读次数:117
[HTDP] <2.3 字处理问题>
exercise_2.3.scm #lang?racket/base ;;;?[HTDP]?<2.3?字处理问题>?<习题?2.3.1> ;;;?<合约>?tax?:?(number?number?number)->number ;;;?<用途>?计算所得税 ;;;?<合约>?netpay?:?(number?num...
分类:其他好文   时间:2015-01-06 23:20:13    阅读次数:464
jfinal2
jfinal框架的简单搭建,这节通过一个小例子了解jfinal的结构和特点 先上图 1、建数据库(我用的是oracle数据库,其他的相对也差不多) -- Create table create table CLASSES ( classesid NUMBER not null, classesname VARCHAR2(20), classesaddres...
分类:其他好文   时间:2015-01-06 23:14:50    阅读次数:286
HDU 4135 Co-prime(组合+容斥)
Problem Description Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N. Two integers are said to be co-prime or relatively pr...
分类:其他好文   时间:2015-01-06 23:11:11    阅读次数:171
Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the BST. Note: next()...
分类:其他好文   时间:2015-01-06 20:09:24    阅读次数:159
Oracle T4-2 使用ILOM CLI升级Firmware
简单记录一下使用命令行升级Firmware的过程。 升级前版本 -> version SP firmware 3.2.1.8.a SP firmware build number: 88456 SP firmware date: Thu Apr 10 11:54:49 PDT 2014 SP fil...
分类:数据库   时间:2015-01-06 20:00:19    阅读次数:312
javascript学习笔记1
javascript学习笔记1 1、输出语句 ; 2、语法构成; 3、数据类型:typeof 操作符、Undefined 类型、Null 类型、Boolean 类型、Number 类型、String 类型 、Object 类型
分类:编程语言   时间:2015-01-06 19:30:06    阅读次数:131
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!