九度1087
来源:互联网 发布:广元广电网络节目表 编辑:程序博客网 时间:2024/05/16 07:06
#include <iostream>#include <algorithm>#include <cstdlib>#include <string.h>#include <string>#include <map>#include <cstdio>#include <cmath>using namespace std;int main(){ int n; int m; int res; while(cin>>n) { for(int i=0;i<n;i++) { scanf("%d",&m); res=0; for(int j=1;j<=(int)sqrt(1.0*m);j++) { if(m%j==0) res += 2; } if((int)sqrt(1.0*m)*(int)sqrt(1.0*m)==m) { res--; } cout<<res<<endl; } } return 0;}
0 0
- 九度oj 1087
- 九度1087
- 九度OJ 1087 约数的个数
- 九度题目1087:约数的个数
- 九度OJ 1087 约数的个数
- 九度OJ 1087:约数的个数
- 九度题目1087约数的个数
- 九度-1087 约数的个数[数论]
- 九度OJ-1087:约数的个数
- 九度OJ-1087-约数的个数
- 九度题目1087:约数的个数
- 九度OJ 1087:约数的个数
- 九度 题目1087:约数的个数
- 【九度OJ】:九度OJ 1050
- 【九度OJ】:九度OJ 1053
- 【九度OJ】:九度OJ 1056
- 【九度OJ】:九度OJ 1059
- 【九度OJ】:九度OJ 1206
- 【Qt开发】QTextEdit 外观属性设置
- 温度传感器(DS18B20)程序
- 通过位运算对程序进行加解密
- java笔记--day11--类object之equals()
- 【Qt开发】QT中用函数把float转化成QString
- 九度1087
- 聊聊Linux与UNIX
- 版本控制 SVN
- LeetCode 397 Integer Replacement
- js事件 封装方法(添加事件、删除事件、阻止冒泡、阻止默认行为)
- 【Qt开发】QString与数字类型的转换(不同进制)
- 小程序之求一个正整数的二进制
- 数据库基础(sql基本指令)
- 为什么很多第三方接口,都改成了基于http,直接传递json数据的方式来代替webservice?