I doubt the cutoff is less than 100.
Edit: If even idraumr only got 130 I doubt the cutoff is more than that.
I doubt the cutoff is less than 100.
Edit: If even idraumr only got 130 I doubt the cutoff is more than that.
sorry but I donât think they are wrong at least my program gave correct answers on all the sample test data
Am I the only one who thought that 1 problem was harder than the second one ?
Nope. I thought the same. Problem 1 is definitely harder IMO.
Yeah I donât think theyâre wrong.
Haha, you flatter me. To be fair, I know a few getting in the upper 100s, and am myself scared of my chances.
I made disgustingly silly mistakes while attempting problem 1.
@vikramnitin9 If you take away all strings of that length, youâd end up taking away strings like 00âŚ000 and 11âŚ11 more than once!
Yeah, so subtract 2 after raising every prime factor except 1. Those are the only two repetitions, I think. Am I right?
25-30 people will make it to camp, you know of only a few people getting higher than you. I donât know of anybody (excluding myself). I honestly wouldnât worry if I were you.
Iâm surprised there wasnât a graph question, I was convinced that there was going to be one graph and one DP.
Same! I wish there wasnât a departure from the pattern, but sigh.
Youâre right I guess. Which anyway means that youâre taking the non periodic strings only (I donât know why you said youâre taking away all strings of that length), considering that 1 gives 2 non periodic strings.
Are you saying that the number of periodic strings of length 1260 is less than 10^8?
There are 2^630 strings of length 630, and thus there are at least that many periodic strings of length 1260.
Just to clarify, as an example, what would be the correct approach if n=12?
12 = 1 x 4 x 3, so my approach would be (2^12)-((2^1) + (2^4 -2) + (2^3 -2))
So for 1260 = 1 x 4 x 9 x 5 x 7, I subtract (2^1)+(2^4 -2), etc
I have a vague feeling that thereâs something wrong with this, though.
Itâs correct, but the way I reached it is different:
2^12 - ((2^1) + (2^2 - 2^1) + (2^4 - (2^2 - 2^1) - 2^1) + (2^3 - 2^1))
So are the two ways exactly equivalent? In your method, do you also include (2^6 -2) ? And @sandy999, I did that intentionally, to combine both in one step. Eg: I wanted to take away 1010 and 0101 also. These are patterns for 2, but they can be merged with 4.
Yeah, didnât notice that.
I donât think so, I think they happen to be equivalent in this case.
My method must be wrong, because like you mentioned above, for 1260, I donât take 2^630, only its individual factors.
last year was comparitively cakewalk. One question was direct Floyd warshall and the 1st question was difficult, but not impossibleâŚ