Stack Exchange
log in
users (55)
rooms (31)
faq
cattt
general
recent
conversations
JEE Maths Zone
Related Rooms: [Physics](
chat.stackexchange.com/rooms/54160/p...
cattt
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
cattt
Jul 12, 2019 19:52
@mayur have you checked this case
cattt
Jul 10, 2019 06:00
In that how can we use for arithmetic operation after taht.
cattt
Jul 10, 2019 05:59
@AjayMishra
quora.com/…
cattt
Jul 9, 2019 08:08
@AjayMishra That is what I am not getting at which input it is getting wrong
cattt
Jul 9, 2019 05:51
codechef.com/JULY19B/problems/MMAX
cattt
Jul 9, 2019 05:51
But I am not getting why it is getting wrong answer. Can you help me in this.
cattt
Jul 9, 2019 05:50
@AjayMishra This is my code for that question:
pastebin.com/FDcCt8Jq
cattt
Jul 8, 2019 14:14
How many have you done?
cattt
Jul 8, 2019 14:11
@Mayur This time's problems are hard
cattt
Jul 8, 2019 05:19
thanks
cattt
Jul 8, 2019 05:17
I will check that
cattt
Jul 8, 2019 05:14
Yes]
cattt
Jul 8, 2019 05:14
okay
cattt
Jul 8, 2019 05:13
I dont know python can hold such large numbers too
cattt
Jul 8, 2019 05:12
Yes it was
cattt
Jul 8, 2019 05:12
ohh
cattt
Jul 8, 2019 05:09
imgur.com/rHuQGvq
cattt
Jul 8, 2019 05:08
So, I think there would be some other logic
cattt
Jul 8, 2019 05:07
$10^{100,000}$
cattt
Jul 8, 2019 05:07
yes
cattt
Jul 8, 2019 04:58
@AjayMishra In the constraints section, the value of
k
constraint
cattt
Jul 8, 2019 04:18
@AjayMishra @Mayur @Mann
cattt
Jul 8, 2019 04:18
In this how could I take this large input
cattt
Jul 8, 2019 04:17
codechef.com/JULY19B/problems/MMAX
cattt
Jul 6, 2019 04:43
@Mayur Are you giving this time?
cattt
Jul 6, 2019 04:25
@AjayMishra Every year new students come.
cattt
Jun 17, 2019 09:21
@Mann Its still wrong
cattt
Jun 17, 2019 08:53
@Mann Including alpha ?
cattt
Jun 17, 2019 08:52
@Mann Which
cattt
Jun 17, 2019 08:50
1 min ago
, by
cattt
https://pastebin.com/p62kMVRB
cattt
Jun 17, 2019 08:50
@Mann @AjayMishra
cattt
Jun 17, 2019 08:50
I have used $k+n-1-i*n$
cattt
Jun 17, 2019 08:50
Whats wrong in it
cattt
Jun 17, 2019 08:49
Here is my C++ code to find the number of numbers
cattt
Jun 17, 2019 08:49
pastebin.com/p62kMVRB
cattt
Jun 17, 2019 08:01
Does that also include numbers less that k
cattt
Jun 17, 2019 07:59
What if n= 3 and k =3
cattt
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
cattt
Jun 17, 2019 07:41
correct?
cattt
Jun 17, 2019 07:41
@AjayMishra Is this
chat.stackexchange.com/transcript/message/50675474#50675474
cattt
Jun 17, 2019 07:30
Confirmed !! : that cannot be formed
cattt
Jun 17, 2019 07:29
@AjayMishra Sorry that cannot be formed
cattt
Jun 17, 2019 07:29
Yea
cattt
Jun 17, 2019 07:28
Which is the number of numbers(1,2) which cannot be formed
cattt
Jun 17, 2019 07:28
The number which cannot be formed are (1,2). Hence Output is 2
cattt
Jun 17, 2019 07:27
No such number(0) exist which cannot be formed
cattt
Jun 17, 2019 07:26
@AjayMishra It means every number can be formed
Discussion between cattt and Mayur
Imported from a comment discussion on
math.stackexchange.com/q...
cattt
Jun 17, 2019 08:54
@Mayur
chat.stackexchange.com/transcript/message/50704420#50704420
cattt
Jun 17, 2019 07:34
No only one test case get passed