码迷,mamicode.com
首页 >  
搜索关键字:ugly number    ( 27156个结果
Codeforces Round #257 (Div. 2)
感言:以后中国高中生的专场还是慎入!!!! A题目还是比较简单 AC代码: #include #include using namespace std; struct p { int number; int val; }num[105]; bool cmp(p x,p y) { if(x.val==y.val) return x.number>...
分类:其他好文   时间:2014-07-22 22:49:34    阅读次数:186
(CF#257)A. Jzzhu and Children
There are n children in Jzzhu's school. Jzzhu is going to give some candies to them. Let's number all the children from 1 to n. The i-th child wants to get at least ai candies. Jzzhu asks childre...
分类:其他好文   时间:2014-07-22 22:49:13    阅读次数:237
题目1004:Median
题目描述: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is...
分类:其他好文   时间:2014-07-22 22:48:53    阅读次数:207
oralce 判断ip是否在ip段里
oracle方法 CREATE?OR?REPLACE?FUNCTION?IpToLong(ip?in?varchar2) return?number?is?? p1?number;? p2?number;? p3?number; ??begin?? ????p1?:=?instr(ip,?‘.‘,?1,?1);?? ???...
分类:其他好文   时间:2014-07-22 08:13:37    阅读次数:203
计算子序列和是定值的子序列个数
题目如下: Counting Subsequences Time Limit: 5000 MSMemory Limit: 65536 K Description ?"47 is the quintessential random number," states the 47 society. And there might be a grain of truth in that....
分类:其他好文   时间:2014-07-22 08:13:34    阅读次数:281
convirt(二)—— 创建第一台虚机
1、拷贝cms公钥到managed上,cms依赖免秘钥的root执行环境 #非默认端口,你懂的 ssh-copy-id -i ~/.ssh/id_rsa.pub "-p port_number root@192.168.201.74" 2、managed上存放iso目录,拷贝镜像存放到该目录 #目录位...
分类:其他好文   时间:2014-07-21 10:17:27    阅读次数:341
【leetcode刷题笔记】Plus One
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:其他好文   时间:2014-07-21 10:00:12    阅读次数:185
【LeetCode】【Python题解】Single Number & Maximum Depth of Binary Tree
今天做了三道LeetCode上的简单题目,每道题都是用c++和Python两种语言写的,因为c++版的代码网上比较多,所以就只分享一下Python的代码吧,刚学完Python的基本语法,做做LeetCode的题目还是不错的,对以后找工作面试也有帮助! 刚开始就从AC率最高的入手吧! 1.Given an array of integers, every element appe...
分类:编程语言   时间:2014-07-20 15:27:41    阅读次数:262
poj1436 Horizontally Visible Segments
DescriptionThere is a number of disjoint vertical line segments in the plane. We say that two segments are horizontally visible if they can be connect...
分类:其他好文   时间:2014-07-20 09:27:15    阅读次数:351
【Oracle学习笔记】
---------------loop循环定义变量--------------------declare cursor c1 is select * from emp;# rec emp%rowtype;# i numeber:=1; # v_count number;begin# select count(*) into v_count from emp;#(1) open c1; loop...
分类:数据库   时间:2014-07-20 00:33:20    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!