文件名称:1183
-
所属分类:
- 标签属性:
- 上传时间:2014-07-14
-
文件大小:884byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
acm1183题:像所有的女孩子一样,LT讨厌排列,他现在向你寻求一个排列问题的答案
给你一个数字N(1<=N<10000),并且N的各个位上没有0
他想知道将N的每个位置上的数字全部拿出来,重新排列得到的所有数字的和是多少
比如122的所有排列为:122+212+221=555Input 有多组输入数据,第一行为一个数字case,代表有多少组输入数据 (case<=20)
以下case行每行包含一个正整数N(1<=N<10000),N的意义如上所述Output 一共case行,每行一个整数对应N的所有排列得到的数字的和
Sample Input2
122
12Sample Output555
-Like all the other girls, LT hate arrangement, he is now looking for answers to your questions to give you an arranged a number N (1 < = N < 10000), and no individual bits of the N 0 to N, he wanted to know every digital position all out, rearrange and get all the numbers is the number 122, for example, all arranged as: 122+212+221 = 555Input multiple sets of input data, the first acts of a number of case, on behalf of many sets of input data (case < = 20) the following case lines contains a positive integer N (1 < = N < 10000), N total case meaning above Output lines, each corresponding to an integer number obtained all permutations of N and Sample Input2 122 12Sample Output555 33
给你一个数字N(1<=N<10000),并且N的各个位上没有0
他想知道将N的每个位置上的数字全部拿出来,重新排列得到的所有数字的和是多少
比如122的所有排列为:122+212+221=555Input 有多组输入数据,第一行为一个数字case,代表有多少组输入数据 (case<=20)
以下case行每行包含一个正整数N(1<=N<10000),N的意义如上所述Output 一共case行,每行一个整数对应N的所有排列得到的数字的和
Sample Input2
122
12Sample Output555
-Like all the other girls, LT hate arrangement, he is now looking for answers to your questions to give you an arranged a number N (1 < = N < 10000), and no individual bits of the N 0 to N, he wanted to know every digital position all out, rearrange and get all the numbers is the number 122, for example, all arranged as: 122+212+221 = 555Input multiple sets of input data, the first acts of a number of case, on behalf of many sets of input data (case < = 20) the following case lines contains a positive integer N (1 < = N < 10000), N total case meaning above Output lines, each corresponding to an integer number obtained all permutations of N and Sample Input2 122 12Sample Output555 33
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1183.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.