码迷,mamicode.com
首页 >  
搜索关键字:comare version number    ( 48018个结果
POJ 1328、Radar Installation 贪心
version  1 从右到左排序,每次都尽可能的选打击范围内最右边的点安装雷达(由于浮点,所以不要一棒子打死的判断是大是小,给出一个精度范围,一开始范围给打了就WA),拿这个雷达去覆盖其他点,最后雷达总数一定是最少的 /* poj 1328 264K 16MS */ #include #include #include #include #define MAXN 10...
分类:其他好文   时间:2014-05-23 02:23:38    阅读次数:239
欧拉项目005:最小公倍数
Smallest multiple Problem 5 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly di...
分类:其他好文   时间:2014-05-23 01:51:13    阅读次数:261
2014北京邀请赛 Happy Reversal
H. Happy Reversal 64-bit integer IO format: %lld      Java class name: Main Elfness is studying in an operation "NOT". For a binary number A, if we do operation "NOT A", after that, all digit...
分类:移动开发   时间:2014-05-23 00:43:49    阅读次数:430
2H03-view-radio-group-rating-bar
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
分类:其他好文   时间:2014-05-23 00:30:50    阅读次数:415
Oracle JOB定时任务
--创建表 createtable JOBTEST ( IDVARCHAR2(50) primarykey, NAMEVARCHAR2(20), AGE NUMBER(3) ) --创建存储过程 createorreplaceprocedure jobtestprocedure  isbegin  insertinto jobtest values(to_char(s...
分类:数据库   时间:2014-05-22 18:52:39    阅读次数:359
欧拉项目004:寻找最大的回文数
Problem 4: Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest pal...
分类:其他好文   时间:2014-05-22 18:48:46    阅读次数:355
欧拉计划003. 最大素因子
Problem 3: Largest prime factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 求出最大素因子 我的python代码如下: 又不懂的,或者更好的可以留言,大家互相...
分类:其他好文   时间:2014-05-22 18:40:17    阅读次数:198
ubuntu下sqlite3的用法(以后会讲到wxWidgets使用sqlite3开发)
1.先在线安装sqlite3,试用一下命令安装 ubuntu@ubuntu-virtual-machine:~$ sudo apt-get install sqlite3 2.安装成功后测试会出现 ubuntu@ubuntu-virtual-machine:~$ sqlite3 SQLite version 3.7.9 2011-11-01 00:52:41 Enter ".help"...
分类:数据库   时间:2014-05-22 17:13:35    阅读次数:348
LeetCode: Jump Game II [044]
【题目】 Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Your goal is to reach the last index in the minimum number of ju...
分类:其他好文   时间:2014-05-22 17:02:20    阅读次数:244
sqlserver分页查询
SQL Server 2005引入的新方法。SELECT * FROM (SELECT ROW_NUMBER() OVER(ORDER BY keyField DESC) AS rowNum, * FROM tableName) AS t WHERE rowNum > start AND rowNu...
分类:数据库   时间:2014-05-22 14:22:58    阅读次数:351
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!