hdu1017
来源:互联网 发布:linux 格式化命令 编辑:程序博客网 时间:2024/05/21 09:22
//水题一枚,不过让我W的蛋疼。。。//while(scanf("%d%d",&n,&m)&&n&&m)//尼玛这样竟然不给A//while(scanf("%d%d",&n,&m),n||m)换成这样就A了,//本来一次提交就能过的题,纠结了半天,,,不爽,,,,#include <stdio.h>int main (){int c,n,m,a,b;int count=0;int cases=1;scanf("%d",&c);while(c--){cases=1;while(scanf("%d%d",&n,&m),n||m){count=0;for(a=1;a<n;a++){for(b=a+1;b<n;b++)if((a*a+b*b+m)%(a*b)==0)count++;}printf("Case %d: %d\n",cases,count);cases++;}if(c!=0)printf("\n");}return 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
- C++下面 计算时间
- 如何知道一个session都执行过哪些SQL语句
- 清晰,优雅,但却是错的
- Leveldb源码分析--1
- 异常的代价
- hdu1017
- jQuery基础---filter()和find()
- 网络收包发包粗图(确实是非常粗)
- SqlMapClient对象
- phpMailer 使用
- 自动生成C语言代码里的shellcode
- 像小白一样思考
- hdu1016
- 内核学习笔记知识点记录(更新中)