SANSKAR problem DEC14

Lol! The same haalat in XORSUB :frowning:

Too tough questions this time! o.O

1 Like

mail them to adminā€¦

1 Like

@ajinkya1p3

Yahh in XORSUB too, able to score only 30 pointsā€¦ :frowning:

Yes really tough competition, i though i will do well but i am able to solve only CAPPLE for 100 pointsā€¦

Still need a lot of practiceā€¦ !!

1 Like

And please keep those, and add those to editorial later :wink:

2 Likes

each sanskar is allocated to single follower .

what should be correct answer for this test case:
1 2
0
yes or no ?
answer is accepted for no, but if you see the last statement in problem, ā€œoutput ā€œyesā€ if it is possible to divide his sanskars equally amongst his followersā€ so 0 is allotted to 1st follower and then 2nd follower has nothing, sum is still zero, so shouldnā€™t that be a yes.

It should be yesā€¦ At least thatā€™s what I assumed, and I got AC :slight_smile:

answer is yes only , may be weak test cases .

^ I think I said that too earlyā€¦ :stuck_out_tongue: Points went down to 20 from 100ā€¦ :ā€™(

1 Like

since N and K have very low value the problem is solvable

Answer should be NO :slight_smile: Just corrected :slight_smile:

No, you canā€™t do that :slight_smile:

1 Like

Admins please stop adding trivial test cases. We are testing peoples algorithmic skills here. You just added test cases to differentiate no sanskar from sanskars with zero intensity. One could start a philosophical arguement on whether these two are indeed equal, but are we really achieving anything by adding those test cases? Does it really differentiate good programmers from bad ones?

2 Likes

Agreed

0 ā‰¤ intensity of sanskar ā‰¤ 10^5

this constraint clearly state sanskar can have intensity 0 with a valid count.

you know itā€™s against the rules. :slight_smile:

Abe bol mat, firse update kar denge wo :stuck_out_tongue:

1 Like

Karne deā€¦ab mene modify kar liya haiā€¦solutionā€¦;)ā€¦

1 Like

Heheā€¦ :stuck_out_tongue:

1 Like

points went down to 20 :frowning:

Reason for closing this post is ppl are sharing test cases and then asking for answers!!!

1 Like