UESTC
来源:互联网 发布:网络报警平台网络诈骗 编辑:程序博客网 时间:2024/06/06 17:25
传送门
//所以直接模拟写就可以了.
AC Code
/** @Cain*/void getnum(ll n) //素数连乘{ printf("%d=",n); int flag = 0; for(ll i=2;i*i<=n;i++){ while(n%i == 0){ n = n/i; if(!flag) printf("%d",i); else printf("*%d",i); flag |= 1; } } if(n!=1 && !flag) printf("%d\n",n); else if(n!= 1 && flag) printf("*%d\n",n); else printf("\n");}
阅读全文
0 0
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- UESTC
- hdu 3944 DP?
- 接口测试方案(Rest类型接口)
- Android中BitmapFactory.Options详解
- 华为OJ——将真分数分解为埃及分数
- eclipse--maven项目没有自动编译的问题
- UESTC
- 【Linux】top命令详解——进程管理器
- 数据结构排序1
- Python
- LintCode之最长回文子串
- AngularJs 中 $routeProvider 与 $stateProvider 的区别
- __declspec(dllexport)和__declspec(dllimport)、.def
- mysql sql 根据父级id查询书所有的子孙级数据,或根据子级id查询对应的父级
- 基于单幅图像的快速去雾算法实现