algorithms and random thoughts
Sunday, March 25, 2012
SRM 537 div2 clear
p925, find prerequisite chain and compute each element individually.
ans = sum of each a[i]
ans for a[i] = 1.0/length of prerequisite chain, if loop, then 0.0
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment