aboutsummaryrefslogtreecommitdiff
path: root/challenge-344/eric-cheung/python/ch-1.py
blob: 23cff3d29a7a0c4a6e39bfe50a72ddae22259c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Example 1
## arrInt = [1, 2, 3, 4]
## nX = 12

## Example 2
## arrInt = [2, 7, 4]
## nX = 181

## Example 3
## arrInt = [9, 9, 9]
## nX = 1

## Example 4
## arrInt = [1, 0, 0, 0, 0]
## nX = 9999

## Example 5
arrInt = [0]
nX = 1000

nOutput = int("".join([str(nLoop) for nLoop in arrInt])) + nX
arrOutput = [int(strLoop) for strLoop in str(nOutput)]

print (arrOutput)