码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
hdoj-1212-Big Number【大数取余&简单题】
Big Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6015 Accepted Submission(s): 4205 Problem Description As we know, Big Number is...
分类:其他好文   时间:2015-08-10 09:28:24    阅读次数:114
pat00-自测4. Have Fun with Numbers (20)
00-自测4. Have Fun with Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consis...
分类:其他好文   时间:2015-08-10 00:14:47    阅读次数:137
HDU 1394-Minimum Inversion Number(BIT)
题意:给你n个数字的序列 每次把第一个数字放到最后 得到一个新序列 一共有n个序列求这些序列中哪个序列含最小的总的逆序数 (输出最小总逆序数)分析:用BIT求出初始各数的逆序数,第一个数放最后它逆序数变正序,正序变逆序。#include #include #include #include #inc...
分类:其他好文   时间:2015-08-09 22:29:39    阅读次数:143
Program C--二分
My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F...
分类:其他好文   时间:2015-08-09 22:18:54    阅读次数:157
hdu 4911Inversion
Description bobo has a sequence a 1,a 2,…,a n. He is allowed to swap two adjacent numbers for no more than k times. Find the minimum number of inversions after his swaps. Note: The number...
分类:其他好文   时间:2015-08-09 20:50:41    阅读次数:174
codeforece 18c
Description Once Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negative. He became interested in how many ways exi...
分类:其他好文   时间:2015-08-09 20:49:19    阅读次数:262
Leetcode: Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 分析: 任意一条直线都可以表述为 y = ax + b 假设,有两个点(x1,y1), (x2,y2),如果他们都在这条直线上则有 y1 = kx1 +b...
分类:其他好文   时间:2015-08-09 20:47:26    阅读次数:98
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space. 题目解析: 判断一个整数是否是回文数, “回文”是指正读反读都能读通的句子,它是古今中外都有的一种修辞方式和文字游戏,如“我为人人,人人为我”等。在数学中也有这样一类数字有这样的特征,成为回文数(palindrome number)。 ...
分类:其他好文   时间:2015-08-09 20:47:26    阅读次数:121
Program E-- CodeForces 18C
DescriptionOnce Bob took a paper stripe of n squares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negat...
分类:其他好文   时间:2015-08-09 20:39:17    阅读次数:171
Stripe
DescriptionOnce Bob took a paper stripe ofnsquares (the height of the stripe is 1 square). In each square he wrote an integer number, possibly negativ...
分类:其他好文   时间:2015-08-09 20:23:56    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!