#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
vector<int> get_divisors(int x) {
vector<int> res;
for (int i = ; i <= x / i; i ++ )
if (x % i == ) {
res.push_back(i);
if (i != x / i) res.push_back(x / i);
}
sort(res.begin(), res.end());
return res;
}
int main() {
int n;
cin >> n;
while (n -- ) {
int x;
cin >> x;
auto res = get_divisors(x);
for (auto x : res) cout << x << ' ';
cout << endl;
}
return ;
}

最新文章

  1. HttpClient_自定义cookie策略
  2. c#新语法学习笔记
  3. 安装vmall5:从ebak恢复数据,需要配置php.ini
  4. Elasticsearch 5.0
  5. maven入门程序(3)
  6. 【转】在Ubuntu上下载、编译和安装Android最新源代码
  7. BootstrapQ 包Bootstrap tree,dialog等待
  8. Memcached for windows x64 x32 安装
  9. Spring源码情操陶冶-AbstractApplicationContext#postProcessBeanFactory
  10. Android自定义控件系列之应用篇——圆形进度条
  11. Java小目标
  12. MySQL分页查询性能优化
  13. Shell第二篇:正则表达式和文本处理工具
  14. 学习笔记-AngularJs(九)
  15. weblogic 乱码
  16. noip第28课作业
  17. Codeforces Round #310 (Div. 1) B. Case of Fugitive(set二分)
  18. jQuery form的load函数与el表达式赋值的冲突问题
  19. 当本机通过代理服务器上网时,本机无法打开在本机上的虚拟机(oracle vm)linux系统上的网站,但是局域网里的其他机器却可以打开
  20. 【xsy1378】 水题7号 贪心

热门文章

  1. python语言基础3
  2. pytest-fixture之conftest.py
  3. Gin_Cookie
  4. Accept Xcode/iOS License to run git
  5. GitBook的使用方式,快速创建网页文档
  6. css给span加float:right右浮动后内容换行下移
  7. c# Gridview 自动分页功能 解决后面页面不显示问题
  8. 【Python】循环控制保留字
  9. C++中类成员变量的初始化问题
  10. python面试的100题(11)