hdu 1279 验证角谷猜想
2024-09-22 05:05:19
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1279
#include<stdlib.h>
#include<time.h>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <string>
using namespace std; int main()
{
int num,n,flag;
cin>>num;
while(num--)
{
cin>>n;
flag=;
while(n!=)
{
if(n% == )
{
n=n/;
} else
{
if(flag != )
printf(" ");
printf("%d",n);
n=n*+;
flag++;
} }
if(flag == )
printf("No number can be output !");
printf("\n");
}
return ;
}
最新文章
- 跟着老男孩教育学Python开发【第三篇】:Python函数
- 严重: Error starting static Resources java.lang.IllegalArgumentException:
- 使用SerialPort&#160;读取外置GPS信息和使用GeoCoordinateWatcher获取内置gps的信息
- IOS URL 编码和解码
- 快速理解C#高级概念(一) Delegate委托
- 安装虚拟机VMware tools
- IOS常用的系统文件目录介绍
- oracle命令识记
- leetcode 138. Copy List with Random Pointer ----- java
- java实现DES算法
- String.IsNullOrWhiteSpace和String.IsNullOrEmpty的区别
- jQuery运维开发之第十七天
- codevs 1047 邮票面值设计
- MongoDB用户
- NopCommerce添加事务机制
- vue-router 通过路由来实现切换头部标题
- python中的GIL详解
- pc端字体大小计算以及echart中字体大小计算
- TCO 2015 1A Hard.Revmatching(Hall定理)
- id: cannot find name for user ID xxx处理办法
热门文章
- DEV控件Grid显示行号
- Unable to add window -- token null is not for an application
- explicit,violate,volatile,mutable小结
- django formset bug?
- 获取编辑框字符串,传入Intent
- ubuntu dhcp修改ip地址
- document.documentElement.scrollTop || document.body.scrollTop
- 解决IDEA自动重置LanguageLevel和JavaCompiler版本的问题
- ios UIButton shadowcolor 导致黑边问题
- C# 对象实例几种方法