Canadian Computing Competition: 2017 Stage 1, Junior #2
Suppose we have a number like
In this problem you will be calculating a shifty sum, which is the sum of a number and the numbers we get by shifting. Specifically, you will be given the starting number
For example, the shifty sum when
Input Specification
The first line of input contains the number
Output Specification
Output the integer which is the shifty sum of
Sample Input
12
3
Sample Output
13332
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
yay I got it right
the logic is very simply, but you need to be careful when adding them!
This comment is hidden due to too much negative feedback. Show it anyway.
I solved this one by converting a string of all ones to an int.....
I solved it by getting the sum of a list
This comment is hidden due to too much negative feedback. Show it anyway.
Yes, because you submitted an editorial solution to a lot of problems without solving them yourself before. Each editorial is accompanied by a large warning that copy/pasting editorials can lead to bans on submitting a problem, so is it a surprise that you got banned doing so?
I've unbanned you from this problem, but this isn't something that'll happen again.