码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
loj1245(数学)
传送门:Harmonic Number (II)题意:求sum=n/1+n/2+n/3+...+n/n。(n#include #include #include #include #include #include #include #include #include #include #inclu...
分类:其他好文   时间:2015-02-24 15:02:50    阅读次数:176
delphi与二维码
Using Delphi there are several ways you can generate QR codes - to encode any text (URL, phone number, simple message). QR Codes store up to 4,296 alp...
分类:Windows程序   时间:2015-02-24 13:49:24    阅读次数:1220
Winter-1-F Number Sequence 解题报告及测试数据
Time Limit:1000MS Memory Limit:32768KBDescription?A number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod...
分类:Windows程序   时间:2015-02-24 13:44:59    阅读次数:275
LeetCode 171. Excel Sheet Column Number
相似题型:LeetCode 168. Excel Sheet Column Title 代码: class Solution { public: int titleToNumber(string s) { int ret = 0; for (size_t i = 0; i < s.size(); ++ i) {...
分类:其他好文   时间:2015-02-24 11:27:53    阅读次数:142
LeetCode 168. Excel Sheet Column Title
相似题型:LeetCode 171. Excel Sheet Column Number 代码: class Solution { public: string convertToTitle(int n) { string ret; while (n != 0) { ret.insert(ret.begin(), 'A' + (n-1)%26); n = (n-1) / 26; }...
分类:其他好文   时间:2015-02-24 11:26:53    阅读次数:123
UVA 315 Network(无向图求割点)
题目大意 A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N. No two places have the same number. The lines a...
分类:Web程序   时间:2015-02-24 09:10:29    阅读次数:159
HDU1394 Minimum Inversion Number 线段树+数学
Problem DescriptionThe inversion number of a given number sequence a1, a2, …, an is the number of pairs (ai, aj) that satisfy i aj.For a given sequence of numbers a1, a2, …, an, if we move...
分类:其他好文   时间:2015-02-23 23:44:23    阅读次数:400
Codeforces Beta Round #51---D. Beautiful numbers(数位dp, 巧妙)
Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by each of its nonzero digits. We will not argue with...
分类:其他好文   时间:2015-02-23 23:41:09    阅读次数:314
Javascript 内置值、typeof运算符、true/false判断
一、内置值 true false null undefined NaN Infinity二、typeof运算结果 number string boolean undefined function object (array、)三、true/fa...
分类:编程语言   时间:2015-02-23 18:58:05    阅读次数:188
Sort
Counting Sort1. Counting Sort doesn't work for negative number.2. Counting Sort assumes that each element is SMALL INTEGER.3. Time Complexity is O(Max...
分类:其他好文   时间:2015-02-23 16:40:52    阅读次数:118
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!