hdoj1017(格式)
来源:互联网 发布:linux cpu 核数 编辑:程序博客网 时间:2024/06/05 02:43
简单题。
感觉主要考察的又是格式问题。(改了2遍。。。。)
#include<iostream>using namespace std;int main(){int t,n,m,a,b,test,count;cin>>t;while(t--){ test=1;while(cin>>n>>m&&n!=0){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++;}cout<<"Case "<<test<<": "<<count<<endl;test++;}if(t!=0)cout<<endl;//这行代码很关键 }return 0;}
阅读全文
0 0
- hdoj1017(格式)
- HDOJ1017
- hdoj1017
- HDOJ1017
- hdoj1017
- hdoj1017
- hdoj1017简单题
- hdoj1017--A Mathematical Curiosity
- HDOJ1017 A Mathematical Curiosity
- HDOJ1017 A Mathematical Curiosity
- [水]ZOJ1152 HDOJ1017
- HDOJ1017 A Mathematical Curiosity
- 视频文件格式分析(1):avi格式
- iOS 时间格式(时间格式转换)
- 电子邮件基本格式(MIME格式)
- 可行性报告(内容格式)
- 位图格式(转载)
- 格式(可以参考)
- C# OpenFileDialog设置默认打开的文件路径
- SAP HANA里的单位转换
- mysql常用命令之数据库的增删查改
- Hive 中内部表与外部表的区别与创建方法
- Android Binder Analysis(2)
- hdoj1017(格式)
- 解决中文乱码问题
- 贪吃蛇(改进版)
- nodejs 'no sunch file or no director ,open c:\users\zhou\package.josn'
- 路由器局域网广域网接口配置命令
- 使用Autossh开启SSH Tunnel
- springBoot构建Restful服务
- cmake 学习笔记(一)
- mysql 提示 access denied for user 'root'@'localhost'(using password:YES) 的解决方法