E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Unsolvable
HDU 4627 There are many
unsolvable
problem in the world.It could be about one or about zero.But this
题目链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=82974#problem/E 解题思路:数论,从一个数的中间开始往两边找,找到两个互质的数就是,若这个数为奇数,则就是(n/2)*(n-n/2),若这个数是偶数,则还需要判断这个数的一半是否是偶数,若是偶数,则就是(n/2+1)*(n/2-1),若是奇数,则就是(n/2+2)*
·
2015-10-21 11:22
number
Unsolvable
(梅森素数+数学)
题目链接:codeforces225E题目大意:给出一个等式,z=[x2]+y+x⋅y,求另这个等式无解的z,从小到大排序,访问第i个。题目分析:首先为了简便计算先要通过分奇偶去掉向下取整符号,原式转换为如下形式:{z=k+y+2ky ,x=2kz=k+y+(2k+1)⋅y ,x=2k+1(1)(2)对于(1)式我们采取如下推到过程进行推导:z=k+y+2ky,k>=0⇒2z+1=2k+2y+4k
qq_24451605
·
2015-09-08 14:00
codeforces
数学推导
梅森素数
HDU 1032.The 3n + 1 problem【注意细节】【估计数据不强】【8月21】
1problemProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
a995549572
·
2015-08-21 19:00
C++
ACM
HDU
POJ-1207 The 3n + 1 problem
17261DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
MIKASA3
·
2015-08-07 19:00
C++
poj
南邮 OJ 1964 NP
测试通过:42 比赛描述ProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
changshu1
·
2015-08-07 10:00
ACM
NP
南邮OJ
The
Unsolvable
Problem
The
Unsolvable
Problem 题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?
·
2015-07-17 16:00
ab
The 3n + 1 problem
17142DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
lv414333532
·
2015-06-15 14:00
The 3n + 1 problem
17142DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
huayunhualuo
·
2015-06-12 17:00
POJ 1207 The 3n + 1 problem (数学)
16999DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u013068502
·
2015-04-14 21:00
poj
NYOJ 271 The 3n + 1 problem
65535 KB难度:2描述ProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
zwj1452267376
·
2015-03-15 18:00
I - The 3n + 1 problem(2.4.2)
DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u014552726
·
2014-07-17 09:00
数据结构
C++
+
1
the
3n
problem2.
第二章 I - The 3n + 1 problem(2.4.2)
这就是为什么还得开辟两个值得原因DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u014665013
·
2014-07-16 15:00
I - The 3n + 1 problem(2.4.2)
DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u014028231
·
2014-07-14 15:00
POJ 1207 The 3n + 1 problem
16299DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u013263923
·
2014-07-14 12:00
poj1207--The 3n + 1 problem
15940DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u013015642
·
2014-05-14 16:00
北大ACM 1207 The 3n + 1 problem
15336DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
q745401990
·
2013-11-08 12:00
算法
ACM
[ACM]The 3n + 1 problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
sr19930829
·
2013-09-09 17:00
ACM
3n+1
uva 100 The 3n + 1 problem (递归)
1problem BackgroundProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
u011328934
·
2013-08-04 00:00
HDU 4627 The
Unsolvable
Problem(简单题)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4627题目大意:给定一个整数n(2 2#include 3#include 4usingnamespacestd; 5__int64n; 6intmain() 7{ 8intT; 9scanf("%d",&T); 10while(T--) 11{ 12scanf("%I64d",&
·
2013-08-02 09:00
HDU
hdu 4627 The
Unsolvable
Problem【hdu2013多校3签到】
链接:http://acm.hdu.edu.cn/showproblem.php?pid=4627TheUnsolvableProblemTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):243 AcceptedSubmission(s):143Probl
Cfreezhan
·
2013-07-30 20:00
2013多校联合3 G The
Unsolvable
Problem(hdu 4627)
http://acm.hdu.edu.cn/showproblem.php?pid=4627TheUnsolvableProblemTimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):230 AcceptedSubmission(s):136ProblemD
dyx404514
·
2013-07-30 20:00
HDU 4627 The
Unsolvable
Problem 解题报告
题目比赛题意:给出n,求a+b=n,a,b为正数,使得a,b的最小共倍数最大。解法:应该去找两个互质的a和b,且尽可能接近n/2。n为奇数时,显然,LCM=(n/2)*(n/2+1).n为偶数是分两种情况,a=n/2;若a-1为奇数,则(a-1),(a+1)互质,否则,a-2和a+2互质。//Time15MS //Memory200K、 #include #include #include #in
u010638776
·
2013-07-30 20:00
classnull100 - The 3n + 1 problem
Background ProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
·
2013-06-24 21:00
Class
UVA 100 The 3n+1 Problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
老家的橡壳树
·
2013-04-24 17:00
HDU1032:The 3n + 1 problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
libin56842
·
2013-02-27 12:00
poj1207-the 3n+1 problems
DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
tobacco5648
·
2012-12-05 18:00
hdu 1032 The 3n + 1 problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
hnuzengchao
·
2012-05-22 00:00
Algorithm
input
output
pair
classification
Numbers
POJ 1207 The 3n+1 problem(我的水题之路——输入输出要保持原有顺序)
12694DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
shiow1991
·
2012-01-28 16:00
HDU 1032 The 3n + 1 problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
qq413785523
·
2011-12-16 18:00
Algorithm
input
output
classification
pair
Numbers
uva100 The 3n + 1 problem
1problem BackgroundProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
x954818696
·
2011-11-02 21:00
Algorithm
input
output
classification
pair
Numbers
POJ 1207 HDOJ/HDU 1032 3n+1数链问题 绝对不水的解法
12294DescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
xieshimao
·
2011-09-14 15:00
Algorithm
tree
search
input
classification
Numbers
UVa100 The 3n+1 problem
BackgroundProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
JackyZhengX1990
·
2010-12-31 10:00
The 3n + 1 problem
ProblemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
happymawolf
·
2010-12-08 19:00
Algorithm
input
output
classification
pair
Numbers
acm pku 1207 The 3n+1的算法分析与实现
1problemDescriptionProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
uestcshe
·
2010-11-13 23:00
Algorithm
算法
input
output
classification
Numbers
UVa OJ 100 - The 3n + 1 problem (3n + 1问题)
Background背景ProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
Devymex
·
2010-08-04 13:00
ACM 3n+1的问题
Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP,
Unsolvable
beyondjhf_2008
·
2009-04-22 22:00
C++
c
C#
J#
The 3n + 1 problem
BackgroundProblemsinComputerScienceareoftenclassifiedasbelongingtoacertainclassofproblems(e.g.,NP,
Unsolvable
技术,瞎侃,健康,休闲……
·
2006-06-10 00:00
上一页
1
2
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他