hdu1017
来源:互联网 发布:淘宝助理韵达模板下载 编辑:程序博客网 时间:2024/06/08 03:09
http://acm.hdu.edu.cn/showproblem.php?pid=1017
1 #include<iostream> 2 #include<stdio.h> 3 #include<math.h> 4 #include<string.h> 5 #include<iostream> 6 using namespace std; 7 int main() 8 { 9 //freopen("in.txt","r",stdin);10 int t;11 scanf("%d",&t);12 while(t--)13 {14 int Case=1;15 int n,m;16 while(1)17 {18 cin>>n>>m;19 int count=0;20 if(!n&&!m)21 break;22 for(int a=1;a<n;a++)23 {24 for(int b=a+1;b<n;b++)25 {26 if((a*a+b*b+m)%(a*b)==0)27 count++;28 }29 }30 printf("Case %d: %d\n",Case++,count);31 }32 if(t!=0)33 printf("\n");34 }35 return 0;36 }
阅读全文
0 0
- hdu1017
- hdu1017
- hdu1017
- hdu1017
- HDU1017
- HDU1017
- hdu1017
- HDU1017
- HDU1017 水题
- HDU1017 A Mathematical Curiosity
- hdu1017 A Mathematical Curiosity
- hdu1017-A Mathematical Curiosity
- hdu1017-A Mathematical Curiosity
- hdu1017(很简单)
- hdu1017 A Mathematical Curiosity
- HDU1017-A Mathematical Curiosity
- HDU1017(枚举)
- hdu1017 A Mathematical Curiosity
- Eclipse中开启courier new字体
- hdu1247 Hat’s Words
- 下面这段代码要循环延时输出0 1 2 3 4,输出结果是否正确,若不正确请修改,并理
- hdu 1075 What Are You Talking About
- 线程学习 (四) 线程安全和线程锁机制
- hdu1017
- 简单~音乐播放器
- hdu2717 Catch That Cow
- hdu1020 Encoding
- hdu1021 Fibonacci Again
- 1015. 德才论
- hdu1022 Train Problem I
- Boring隧道掘进机完成首段挖掘_离未来交通还有多远?
- hdu1031 Design T-Shirt