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
Curiosity
A Mathematical
Curiosity
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):35636 AcceptedSubmission(s):11369ProblemDescriptionGiventwointegersnandm,countthe
liyingjie01
·
2016-04-21 18:00
HDU 1017 A Mathematical
Curiosity
(枚举+mod)
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):35537 AcceptedSubmission(s):11341ProblemDescriptio
liangzhaoyang1
·
2016-04-15 23:00
HDU
1017
a
mathematical
Curio
HDU 1017 A Mathematical
Curiosity
(枚举)(数论)
题意:给你一个N,你可以进行N项操作(ThefirstlineofamultipleinputisanintegerN,thenablanklinefollowedbyNinputblocks.本句话是坑,错的)。 每项操作包括输入n和m,输入00为止。 当进行第N项操作后,不需要再输出空行!才知道“枚举”也属于数论,数论的世界如此广大!!!思路:枚举#include usingnamespace
huatian5
·
2016-04-09 21:00
枚举
数论
杭电
HDU 1017:A Mathematical
Curiosity
【水】
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):35317 AcceptedSubmission(s):11257ProblemDescriptionGiventwointegersnandm,countthe
lin14543
·
2016-03-27 21:00
HDOJ 1017 A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat00){ intp=0; while(sc.hasNext()){ intn=sc.nextInt(); intm=sc.nextInt(); intnum=0; if(n==0&&m==0){ break; } for(inta=
qq_26525215
·
2016-03-24 21:00
java
ACM
HDU 1017 A Mathematical
Curiosity
题目:输入数据N ,代表N组多实例;输入n,m代表两个数,且 aa。故有,b=a+1;因为a b 都小于n ,则有 a usingnamespacestd; intmain() { inta,b,n,m; intt,k; intsum; cin>>t; while(t--) { k=1; while(cin>>n>>m,n+m) { sum=0; for(inta=1;a
qq_33638791
·
2016-02-23 21:00
HDU 1017 A Mathematical
Curiosity
DescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 #include #include #include #include #include #include #include usingnamespacestd; constintmaxn=1e5+5; typedeflonglongLL;
jtjy568805874
·
2016-02-02 17:00
HDU
HDU 1017 A Mathematical
Curiosity
数学问题,没难度附代码1#include 2#include 3 4usingnamespacestd; 5 6intmain() 7{ 8intN; 9scanf("%d",&N); 10while(N--){ 11intn,m,a,b; 12intnum=0,i=0; 13while(~scanf("%d%d",&n,&m)&&n){ 14num=0; 15for(
闪耀子
·
2016-01-27 13:00
A Mathematical
Curiosity
数学好奇心 15
AMathematicalCuriosity数学好奇心ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 #include ///*runthisprogramusingtheconsolepauseroraddyourowngetch,system("pause")orinpu
quentain
·
2015-11-25 20:00
NASA操控好奇号的Linux 可能是红帽或Xfce衍生版
好奇(
Curiosity
)号火星探测器是一个汽车大小的火星遥控设备。是美国第七个火星着陆探测器,第四台火星车,也是第一辆采用核动力驱动的火星车,其使命是探寻火星上的生命元素。
Foundation
·
2015-11-16 09:00
hdu1017-A Mathematical
Curiosity
http://acm.hdu.edu.cn/showproblem.php?pid=1017 代码格式及其恶心,记录一下 #include<iostream> #include<cstdio> #include<cstring> using namespace std ; int main() { int i , j
·
2015-11-13 14:18
Math
杭电OJ_DIY_YTW2_1001 A Mathematical
Curiosity
Problem Description Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer. This problem contains multiple te
·
2015-11-13 07:38
Math
zju 1152 A Mathematical
Curiosity
代码: #include<cstdio> #include<cstdlib> #include<cmath> int main() { int n,m,tcase,k,i,j,a,b,m_count; while(scanf("%d",&tcase)==1) {
·
2015-11-13 04:45
Math
A Mathematical
Curiosity
简单的数学题,注意格式控制就可以了。 #include < iostream > using namespace std; int main() { int N; int n,m; &nbs
·
2015-11-13 02:57
Math
HDU 1017A Mathematical
Curiosity
水题 WA了6次
1 #include<stdio.h> 2 int main() 3 { 4 int n,m,i,j,count,k,t,g; 5 scanf("%d", &t) ; 6 for(g = 1 ; g <= t ; g++) 7 { 8 if(g!=1) 9 puts("
·
2015-11-11 10:23
Math
HDOJ-1017 A Mathematical
Curiosity
(淼)
http://acm.hdu.edu.cn/showproblem.php?pid=1017 # include <stdio.h> int find(int n, int m) { int count = 0; for(int i = 1; i < n; i++) { for(int j = i + 1; j < n; j++) {
·
2015-11-11 09:58
Math
HDOJ 1017 HDU 1017 A Mathematical
Curiosity
ACM 1017 IN HDU
pid=1017 题目描述: A Mathematical
Curiosity
Time Limit: 2000/1000 MS (Java/O
·
2015-11-11 07:55
Math
hdu 1017 A Mathematical
Curiosity
解题报告
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1017 Problem Description Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab)
·
2015-11-02 19:52
Math
Hdu 1017 A Mathematical
Curiosity
题目格式真恶心,WA无数次。 CODE: 1 #include <stdlib.h> 2 #include <math.h> 3 4 #include <stdio.h> 5int main()&nb
·
2015-11-02 18:53
Math
杭电1017 A Mathematical
Curiosity
;* 作者:SJF * 题号:杭电1017 * 题目:A Mathematical
Curiosity
·
2015-10-31 11:52
Math
HDU1017 A Mathematical
Curiosity
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1017 简单题,就是注意下输出格式就ok, #include < iostream > #include < cmath > using namespace std; int doProcess( int n,
·
2015-10-31 08:54
Math
每日英语:My Adventures With Liquid Chicken
One day my husband arrived home from the supermarket with a product that piqued my
curiosity
.
·
2015-10-27 14:35
with
hdu1017--A Mathematical
Curiosity
简单题:使用暴力枚举即可。。。 主要是要注意输出格式 程序代码如下: #include<stdio.h> void process(int n,int m) { int a,b,count=0; for(a=1;a<n-1;a++) &
·
2015-10-20 08:08
Math
HDU 1017 A Mathematical
Curiosity
(水~)
Description给出两个整数n和m,找到满足(a^2+b^2+m)/(ab)是正整数的所有有序对(a,b)的对数(0 #include usingnamespacestd; intcount(intn,intm) { intsum=0; for(inta=1;a
V5ZSQ
·
2015-09-05 23:00
HDU 1017.A Mathematical
Curiosity
【细节及转换】【8月18】
AMathematicalCuriosityProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 intmain(){ intN; scanf("%d",&N); for(intk=0;k
a995549572
·
2015-08-18 19:00
C++
ACM
HDU
细节
1017
HDU 1017 A Mathematical
Curiosity
(枚举水题)
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 #include #include #include usingnamespacestd; intmain() { inta,b,mod,n,m,t,number,ans; scanf("%d",&t); while(t--){
h1021456873
·
2015-08-14 15:00
HDU-OJ-1017 A Mathematical
Curiosity
-整数对
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):32002 AcceptedSubmission(s):10254ProblemDescriptionGiventwointegersnandm,countthe
MIKASA3
·
2015-08-08 17:00
C++
HDOJ 1017 A Mathematical
Curiosity
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):31697 AcceptedSubmission(s):10152ProblemDescriptionGiventwointegersnandm,countthe
jinjide_ajin
·
2015-07-30 10:00
hdoj
A Mathematical
Curiosity
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):31177AcceptedSubmission(s):9988ProblemDescriptionGiventwointegersnandm,countthenumberofp
huayunhualuo
·
2015-06-25 21:00
HDU-1017-A Mathematical
Curiosity
(Java && 超级水果 && 格式恶心)
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):30722 AcceptedSubmission(s):9845ProblemDescriptionGiventwointegersnandm,countthen
qq_16542775
·
2015-05-16 17:00
java
HDU
水题
格式问题
Oier
美国航空航天局工程师用 Femap来确保“好奇”(
Curiosity
)号火星探测器能够熬过“恐怖的七
向火星发送探测器是一项复杂的任务从地球上将漫游科学实验室发射到火星需要进行细致的计划和精确的性能。你只有一次做对的机会,容不得丝毫差错。在实施一项耗时数年的产品开发计划中,美国加州理工学院美国航空航天局喷气推进实验室(JPL)的工程师和科学家做出了数千项重要决定,“好奇”号火星探测器才于2012年8月6日成功着陆盖尔陨坑(GaleCrater)。从20世纪30年代以来,喷气推进实验室一直在从事火箭
solidedge
·
2015-05-14 13:00
hud.1017 A Mathematical
Curiosity
http://acm.hdu.edu.cn/showproblem.php?pid=1017importjava.util.Scanner; publicclassMathematical { publicstaticvoidmain(String[]args) { intn,m,N; intcount=1; Scannerinput=newScanner(System.in); N=inpu
l_vaule
·
2015-04-06 10:00
HDU 1017 A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 intmain(){intncase,ccase;longm,n,cnt;longi,j,k; scanf("%d",&ncase);for(i=1;i0){ cnt=0;for(j=1;j
lishuzhai
·
2015-03-10 16:00
HDU-A Mathematical
Curiosity
-求满足条件的数对数
问题及代码:ProblemI AMathematicalCuriosityTimeLimit:2000/1000ms(Java/Other) MemoryLimit:65536/32768K(Java/Other)TotalSubmission(s):12 AcceptedSubmission(s):4Font: TimesNewRoman | Verdana | GeorgiaFontS
MIKASA3
·
2015-02-27 22:00
C++
HDU
a
mathematical
Curio
Live bravely, openly, richly, with hopes and feelings
Ihaveadreamtolivewithpeace, bravery, fightingpower,
curiosity
,wisdomandhope.Iclassifythedreamsintoseveralcategories
brandohero
·
2014-12-12 02:00
A Mathematical
Curiosity
AMathematicalCuriosityTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):27597AcceptedSubmission(s):8787ProblemDescriptionGiventwointegersnandm,countthenumberofp
zchlww
·
2014-11-21 17:00
数据
printf
测试
1408051533-hd-A Mathematical
Curiosity
.cpp
#includeintmain(){ intt; intn,m; inti,j,k,sum; doublel; scanf("%d",&t); while(t) { k=1; while(scanf("%d%d",&n,&m),n+m) { sum=0; for(i=1;i
wangluoershixiong
·
2014-08-05 15:00
hdu 1017 A Mathematical
Curiosity
(水题)
小记:题意说了输入格式还有输出格式,害的我一直PE了下来,因为样例输入根本就不能提供一点稍有价值的信息,自己摸索着A过来了。思路:n #include usingnamespacestd; intmain(){ //freopen("f:\\out.txt","w",stdout); intT,n,m,cnt; cin>>T; while(T--){ cnt=1; while(cin>>n>>m
ljd4305
·
2014-04-03 09:00
HDOJ A Mathematical
Curiosity
DescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 intmain() { inta,b,m,n,t,i,x,y; scanf("%d",&y); for(i=0;i
u013013910
·
2014-01-28 20:00
编程
C语言
A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0usingnamespacestd;intmain(){ intn,m,a,b,c; intN,j; cin>>N; for(j=0;j>n>>m) { if(n==0&&m==0)
wangkun__
·
2013-11-22 09:00
HD-1017 A Mathematical
Curiosity
试题分析
这道题很简单,但是很棘手,格式要求有点BT1,题目中的输入例子好像不对,示范输入有错;2.判断结束时用n!=0,而不是用n!=0&&m!=0;3.最后一行是不能空行的4.每当输入N后,Case第一次便为1;//***********AC的源代码***********************************************#includeintmain(){intN,n,m,i,j;
u010893129
·
2013-10-09 00:00
源代码
C语言
ACM
A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 usingnamespacestd; intmain() { inta,b,m,n,N,count,Case; cin>>N; inti; for(i=0;i>n>>m&&(n||m))//特别注意只有n和m同时为0时满足才
he_xiang_
·
2013-09-16 18:00
A Mathematical
Curiosity
#include usingnamespacestd; intmain() { intn,m;//输入 intr,a,b,c; intN;//情况 cin>>N; for(inti=0;i>n>>m) { if(n==0&&m==0) break; r=0; for(a=1;ab) if((a*a+b*b+m)%(a*b)==0) ++r; } } cout<<
u010257696
·
2013-09-13 09:00
[catch]--A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 usingnamespacestd; intmain() { intN; cin>>N; //cout>n>>m) { if(0==n&&0==m) { break; } else { i
a191030148
·
2013-09-12 20:00
ACM
[ACM]A Mathematical
Curiosity
ProblemDescriptionGiventwointegersnandm,countthenumberofpairsofintegers(a,b)suchthat0 #include usingnamespacestd; intmain() { intN,n,m,Case,count; intNi,a,b; cin>>N; for(Ni=0;Ni>n>>m&&(n||m))//这个条件要特别
sr19930829
·
2013-09-09 17:00
枚举
ACM
zoj 1152 A Mathematical
Curiosity
方法:枚举做这道题,在第十行的位置WA了很多次,(n||m)不能写成(n+m),m可能是负数,一直没注意到,导致不停的WA....... #include intmain() { intT,n,m,a,b,ans,p=0; scanf("%d",&T); while(T--) { if(p++)printf("\n"); intnum=1; while(scanf("%d%d",
·
2013-07-09 16:00
Math
浏览器添加退出功能
So by
curiosity
I have t
HZBin.COM
·
2013-06-11 10:00
浏览器
好奇号火星车的一些计算机软硬件信息
“好奇号”火星车简介 “好奇号”火星车(
Curiosity
),是美国国家航空航天局迄今(2012年)最昂贵的火星探测项目。
xinghongduo
·
2013-02-18 13:00
hdu 1017 A Mathematical
Curiosity
(水。。)
点击打开链接题目意思描述不清。。。1)第一个数字是blocks的个数,但注意后面不用输出换行符(输入样例是有个空白行的,莫名其妙)。2)每个block都以00结束,然后重新从Case1开始输出。3)两个相邻的block之间输出空行,最后一块后面不用#include"stdio.h" #include"string.h" intmain() { intN; while(scanf("%d",&N)!
yyf573462811
·
2012-10-14 17:00
HDOJ 1017 A Mathematical
Curiosity
网吧里写代码,太痛苦了#include intmain(){ intt; scanf("%d",&t); intn,m,k,count; while(t--){ k=0; while(scanf("%d%d",&n,&m),n||m){ count=0; for(inti=1;i
電泡泡
·
2012-08-26 21:00
上一页
1
2
3
4
下一页
按字母分类:
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
其他