Hdu 5920 Ugly Problem
来源:互联网 发布:网络零售的发展特征 编辑:程序博客网 时间:2024/06/07 14:28
Ugly Problem
Special Judge
Problem Description
Everyone hates ugly problems.You are given a positive integer. You must represent that number by sum of palindromic numbers.A palindromic number is a positive integer such that if you write out that integer as a string in decimal without leading zeros, the string is an palindrome. For example, 1 is a palindromic number and 10 is not.
In the first line of input, there is an integer T denoting the number of test cases.For each test case, there is only one line describing the given integer s (1≤s≤101000 ).
Output
For each test case, output “Case #x:” on the first line where x is the number of that test case starting from 1. Then output the number of palindromic numbers you used, n, on one line. n must be no more than 50. Then output n lines, each containing one of your palindromic numbers. Their sum must be exactly s.
Sample Input
2181000000000000
Sample Output
Case #1:299Case #2:29999999999991Hint9 + 9 = 18999999999999 + 1 = 1000000000000
懒得写,,,,
0 0
- Hdu 5920 Ugly Problem
- HDU 5920Ugly Problem
- HDU 5920 Ugly Problem(模拟)
- HDU 5920 Ugly Problem(大数减法 模拟)
- hdu 5920 Ugly Problem 字符串处理
- hdu 5920 Ugly Problem(构造题)
- Ugly Problem HDU
- HDU 5920 Ugly Problem 【模拟】 (2016中国大学生程序设计竞赛(长春))
- HDU 5920 Ugly Problem CCPC长春赛区 贪心
- hdu 5920 Ugly Problem 贪心构造 大整数
- hdu 5920 Ugly Problem(CCPC长春,构造回文数)
- HDU 5920 Ugly Problem (JAVA高精度+回文数)
- HDU 5920 Ugly Problem (大数模拟 构造回文串)
- hdu 4920 Ugly Problem [模拟+大数减法]
- HDU 5918 Ugly Problem(模拟)
- HDOJ 5920 Ugly Problem 【模拟】
- Ugly Problem
- Ugly Problem(hdu 5920 && 2016ICPC长春现场赛模拟题)
- JDK的安装与环境变量的设置图解【超级详细】
- Mvn工程解决severlet版本冲突问题
- Spring boot发送邮件失败时候的解决办法
- 下拉刷新自定义控件的实现
- 51nod 1033 骨牌覆盖v2
- Hdu 5920 Ugly Problem
- [MES]每日新品自动维护批号规则与条码规则
- android developer tiny share-20161010
- http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/pdf/spring-boot-reference.pdf
- [kuangbin带你飞]专题四 最短路练习 S POJ 3169
- Sublime Text 3 (Build 3126) 最新注册码
- poj_1068 Parencodings(简单模拟+位运算)
- Android开发中如何匹配layout资源(layout-sw480dp layout-sw600dp-land layout-sw720dp-port)
- Linux / Mac 下 基本的 bash shell 命令详解(cd 、ls)