wuhudsm's blog

By wuhudsm, history, 3 years ago, In English

A

code
solution

B

code
solution

C

code
solution

D

code
solution

E

code
solution

F

code
solution

G

code
solution
  • Vote: I like it
  • +21
  • Vote: I do not like it

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

For C, I have been trying this dp solution but it seems to be failing for tc 14.

dp[i][0] means including the ith round no round has been skipped yet.

dp[i][1] means including the ith round exactly one round has been skipped.

dp[i][0] = dp[i-1][0] if current i is unrated

dp[i][0] = dp[i-1][0] + f((p[i] — dp[i-1][0])/4.0) if current i is rated

dp[i][1] = max(dp[i-1]) if current i is unrated

dp[i][1] = max(dp[i-1][0], dp[i-1][1] + f((p[i] — dp[i-1][1])/4.0))

216641777

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Can you please share the link of the group, if anyone wants to join it.