Jul 12, 2019 19:52
[4, 3, 3, 4] -> [4, 6, 4], penalty: 6
[4, 6, 4] -> [10, 4], penalty: 16
[10, 4] -> [14], penalty: 30
but the optimum is
[4, 3, 3, 4] -> [7, 3, 4], penalty: 7
[7, 3, 4] -> [7, 7], penalty: 14
[7, 7] -> [14], penalty: 28
Jul 12, 2019 19:52
@mayur have you checked this case
Jul 10, 2019 06:00
In that how can we use for arithmetic operation after taht.
Jul 10, 2019 05:59
@AjayMishra quora.com/…
Jul 9, 2019 08:08
@AjayMishra That is what I am not getting at which input it is getting wrong
Jul 9, 2019 05:51
But I am not getting why it is getting wrong answer. Can you help me in this.
Jul 9, 2019 05:50
@AjayMishra This is my code for that question: pastebin.com/FDcCt8Jq
Jul 8, 2019 14:14
How many have you done?
Jul 8, 2019 14:11
@Mayur This time's problems are hard
Jul 8, 2019 05:19
thanks
Jul 8, 2019 05:17
I will check that
Jul 8, 2019 05:14
Yes]
Jul 8, 2019 05:14
okay
Jul 8, 2019 05:13
I dont know python can hold such large numbers too
Jul 8, 2019 05:12
Yes it was
Jul 8, 2019 05:12
ohh
Jul 8, 2019 05:09
Jul 8, 2019 05:08
So, I think there would be some other logic
Jul 8, 2019 05:07
$10^{100,000}$
Jul 8, 2019 05:07
yes
Jul 8, 2019 04:58
@AjayMishra In the constraints section, the value of k constraint
Jul 8, 2019 04:18
@AjayMishra @Mayur @Mann
Jul 8, 2019 04:18
In this how could I take this large input
Jul 6, 2019 04:43
@Mayur Are you giving this time?
Jul 6, 2019 04:25
@AjayMishra Every year new students come.
Jun 17, 2019 09:21
@Mann Its still wrong
Jun 17, 2019 08:53
@Mann Including alpha ?
Jun 17, 2019 08:52
@Mann Which
Jun 17, 2019 08:50
1 min ago, by cattt
https://pastebin.com/p62kMVRB
Jun 17, 2019 08:50
@Mann @AjayMishra
Jun 17, 2019 08:50
I have used $k+n-1-i*n$
Jun 17, 2019 08:50
Whats wrong in it
Jun 17, 2019 08:49
Here is my C++ code to find the number of numbers
Jun 17, 2019 08:49
Jun 17, 2019 08:01
Does that also include numbers less that k
Jun 17, 2019 07:59
What if n= 3 and k =3
Jun 17, 2019 07:58
Jun 14 at 5:14, by Mann
Solutions. Define alpha = greatest integer [k/(n-1)]
Run a for loop from i = 1 to alpha
Fill all the numbers between (i-1) * (k+n-1) to i * k
All these numbers are not possible to cover
Jun 17, 2019 07:41
correct?
Jun 17, 2019 07:30
Confirmed !! : that cannot be formed
Jun 17, 2019 07:29
@AjayMishra Sorry that cannot be formed
Jun 17, 2019 07:29
Yea
Jun 17, 2019 07:28
Which is the number of numbers(1,2) which cannot be formed
Jun 17, 2019 07:28
The number which cannot be formed are (1,2). Hence Output is 2
Jun 17, 2019 07:27
No such number(0) exist which cannot be formed
Jun 17, 2019 07:26
@AjayMishra It means every number can be formed
 
Jun 17, 2019 07:34
No only one test case get passed