HDU1405
来源:互联网 发布:魔兽世界月卡 知乎 编辑:程序博客网 时间:2024/05/17 04:44
#include<stdio.h>int main(){ int n; int s=1; while(scanf("%d",&n),n>=0){ int i; int cnt; if(s!=1) printf("\n"); printf("Case %d.\n",s++); for(i=2;i*i<=n;i++){ cnt=0; if(n%i==0){ printf("%d ",i); } while(n%i==0){ cnt++; n/=i; } if(cnt>=1){ printf("%d ",cnt); } } if(n>1){ printf("%d 1 ",n); } printf("\n"); } return 0;}
行末竟然输出有空格。。。。。。。。。。
0 0
- hdu1405
- hdu1405
- hdu1405
- HDU1405
- HDU1405:The Last Practice
- HDU1405 The Last Practice
- hdu1405 The Last Practice
- hdu1405 The Last Practice
- HDU1405-素数筛选
- HDU1405 The Last Practice
- hdu1405 后置0的个数
- The Last Practice(HDU1405)
- hdu1405——The Last Practice
- Freak特征描述+BruteForceMatcher匹配+RANSAC剔除误匹配
- C语言总复习第二阶段部分练习题
- HDU 2795 Billboard(线段树的另类应用)
- 【学习Linux】第一个shell脚本
- 【ASP.NET】——Application、Server和Session对象
- HDU1405
- Open-Source Virtual Reality --- summary1
- 在Unix和Linux的各种操作系统 chmod 777权限
- Android中图片的三层缓存详解
- LeetCode 89 Gray Code
- LeetCode 54 Spiral Matrix(螺旋矩阵)(Array)(*)
- 首个重复字符
- 文本嗅探(string.find() 的应用,string::npos 的应用)----去哪儿2016研发工程师编程题
- 自己动手写一个轻量级的Android网络请求框架